diff options
author | George Hazan <ghazan@miranda.im> | 2023-04-23 12:39:47 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2023-04-23 12:39:47 +0300 |
commit | 677455a7c4b0b48ad95c7736bc626bf5b719e067 (patch) | |
tree | b925e2cc49d0fc080d85f307371e4ca74bc162bc | |
parent | ef40f8ccd5f9928fc37e934c91ac46a4adc73f7a (diff) |
fixes #3503 (Dbx_sqlite: crash at startup)
-rw-r--r-- | plugins/Dbx_sqlite/src/dbintf.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Dbx_sqlite/src/dbintf.cpp b/plugins/Dbx_sqlite/src/dbintf.cpp index 95855925f5..b983184d32 100644 --- a/plugins/Dbx_sqlite/src/dbintf.cpp +++ b/plugins/Dbx_sqlite/src/dbintf.cpp @@ -145,11 +145,12 @@ int CDbxSQLite::Load() InitContacts();
InitEncryption();
InitSettings();
- InitEvents();
if (InitCrypt())
return EGROKPRF_CANTREAD;
+ InitEvents();
+
m_bTranStarted = true;
rc = sqlite3_exec(m_db, "begin transaction;", nullptr, nullptr, nullptr);
logError(rc, __FILE__, __LINE__);
|