diff options
Diffstat (limited to 'examples/notesmanagerplugin/notesmanager.cpp')
| -rw-r--r-- | examples/notesmanagerplugin/notesmanager.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/notesmanagerplugin/notesmanager.cpp b/examples/notesmanagerplugin/notesmanager.cpp index 0a6e1f2b3e..37f93417d9 100644 --- a/examples/notesmanagerplugin/notesmanager.cpp +++ b/examples/notesmanagerplugin/notesmanager.cpp @@ -39,7 +39,6 @@ ****************************************************************************/ #include <QtCore> -#include <QDebug> #include "notesmanager.h" @@ -51,7 +50,7 @@ NotesManager::NotesManager(QObject *parent) bool NotesManager::init() { QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE"); - db.setDatabaseName("notesmanager.db"); + db.setDatabaseName(QCoreApplication::applicationDirPath() + "/notesmanager.db"); if (!db.open()) db.setDatabaseName(QDir::homePath() + "/notesmanager.db"); |
