diff options
author | George Hazan <ghazan@miranda.im> | 2018-03-30 16:47:09 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-03-30 16:47:09 +0300 |
commit | 0a8a140351a533e2fb895228589efd2846b9c697 (patch) | |
tree | ea9b92130b2f6ab7304e496f20f8b88e0d7ca78f /plugins/Dbx_mdbx/src/dbsettings.cpp | |
parent | 3166b70501ec138496e04140f82147ea23d82420 (diff) |
fix for asynchronous database flush to fix unsaved data
Diffstat (limited to 'plugins/Dbx_mdbx/src/dbsettings.cpp')
-rw-r--r-- | plugins/Dbx_mdbx/src/dbsettings.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/Dbx_mdbx/src/dbsettings.cpp b/plugins/Dbx_mdbx/src/dbsettings.cpp index e8294b4b72..83211cd36f 100644 --- a/plugins/Dbx_mdbx/src/dbsettings.cpp +++ b/plugins/Dbx_mdbx/src/dbsettings.cpp @@ -348,6 +348,8 @@ LBL_WriteString: // notify
lck.unlock();
+
+ DBFlush();
NotifyEventHooks(hSettingChangeEvent, contactID, (LPARAM)&dbcwNotif);
return 0;
}
@@ -381,6 +383,8 @@ STDMETHODIMP_(BOOL) CDbxMDBX::DeleteContactSetting(MCONTACT contactID, LPCSTR sz m_cache->GetCachedValuePtr(contactID, szCachedSettingName, -1);
}
+ DBFlush();
+
// notify
DBCONTACTWRITESETTING dbcws = { 0 };
dbcws.szModule = szModule;
|