X-Git-Url: https://vaikene.ee/gitweb/pswgen11.html?a=blobdiff_plain;ds=inline;f=src%2Fapps%2FPswGen%2FStorage%2Fmodule.cpp;h=e867a0e7d21f6d138e841c5268185a5157a7ce9b;hb=be0e791df48f5a8c9bb4c16f65b62e41e1149552;hp=ab591b7a20d073fa96b0d474a5b058a15043b0e8;hpb=77caaebac175110f337767d4b7422bdaa6b7ac1f;p=evaf
diff --git a/src/apps/PswGen/Storage/module.cpp b/src/apps/PswGen/Storage/module.cpp
index ab591b7..e867a0e 100644
--- a/src/apps/PswGen/Storage/module.cpp
+++ b/src/apps/PswGen/Storage/module.cpp
@@ -23,7 +23,7 @@
#include
#include
#include
-#include
+#include
#include
#include
@@ -108,7 +108,7 @@ bool StorageImpl::init()
if (!QSqlDatabase::contains(DbConnectionName)) {
// No database connection yet
mDb = QSqlDatabase::addDatabase("QSQLITE", DbConnectionName);
- mDb.setDatabaseName(Common::iEnv::instance()->dataRootDir() + DbName);
+ mDb.setDatabaseName(Common::iApp::instance()->dataRootDir() + DbName);
if (!mDb.open()) {
QSqlError err = mDb.lastError();
EVAF_ERROR("Failed to open database : %s", qPrintable(err.text()));