summaryrefslogtreecommitdiff
path: root/plugins/Dbx_sqlite/src/dbintf.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-01-08 18:31:42 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-01-08 18:31:42 +0300
commitdd3d028511f6d94b9b6017a1a26399da3465f3c2 (patch)
tree7f283b40067761e3049f21a630d1e224c0319c90 /plugins/Dbx_sqlite/src/dbintf.cpp
parent8f3e583fffeba6606cf4442008c65e6902308080 (diff)
s-shit
Diffstat (limited to 'plugins/Dbx_sqlite/src/dbintf.cpp')
-rwxr-xr-xplugins/Dbx_sqlite/src/dbintf.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/plugins/Dbx_sqlite/src/dbintf.cpp b/plugins/Dbx_sqlite/src/dbintf.cpp
index 9cc637103d..b219cb11af 100755
--- a/plugins/Dbx_sqlite/src/dbintf.cpp
+++ b/plugins/Dbx_sqlite/src/dbintf.cpp
@@ -142,14 +142,15 @@ MDatabaseCommon* CDbxSQLite::Load(const wchar_t *profile, int readonly)
CDbxSQLite *db = new CDbxSQLite(database);
- if (!db->InitCrypt()) {
- delete db;
- return nullptr;
- }
-
db->InitContacts();
db->InitSettings();
db->InitEvents();
+
+ if (db->InitCrypt()) {
+ delete db;
+ return nullptr;
+ }
+
return db;
}