From dd3d028511f6d94b9b6017a1a26399da3465f3c2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 8 Jan 2021 18:31:42 +0300 Subject: s-shit --- plugins/Dbx_sqlite/src/dbintf.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'plugins/Dbx_sqlite/src') 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; } -- cgit v1.2.3