summaryrefslogtreecommitdiff
path: root/plugins/Dbx_mdbx/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-01-13 21:10:48 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-01-14 14:30:02 +0300
commit1fc999b9fa6d9edfc46e828f197fcdb358b17ace (patch)
tree87fa04883584a9ba6ef83995fe28ba7a89a5dad6 /plugins/Dbx_mdbx/src
parent4bc9c8cf9468582a2e860efbc412c7c6e5c67a94 (diff)
database compaction must display UI message
(cherry picked from commit c11e0132d5e3873ee61e999a82adbef47393623b)
Diffstat (limited to 'plugins/Dbx_mdbx/src')
-rw-r--r--plugins/Dbx_mdbx/src/ui.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/Dbx_mdbx/src/ui.cpp b/plugins/Dbx_mdbx/src/ui.cpp
index 6c5d02073c..81dee5f127 100644
--- a/plugins/Dbx_mdbx/src/ui.cpp
+++ b/plugins/Dbx_mdbx/src/ui.cpp
@@ -161,7 +161,11 @@ static INT_PTR ChangePassword(void* obj, WPARAM, LPARAM)
static INT_PTR CompactMe(void* obj, WPARAM, LPARAM)
{
CDbxMDBX *db = (CDbxMDBX*)obj;
- return db->Compact();
+ if (!db->Compact())
+ MessageBox(0, TranslateT("Database was compacted successfully"), TranslateT("Database"), MB_OK | MB_ICONINFORMATION);
+ else
+ MessageBox(0, TranslateT("Database compaction failed"), TranslateT("Database"), MB_OK | MB_ICONERROR);
+ return 0;
}
/////////////////////////////////////////////////////////////////////////////////////////