From 1fc999b9fa6d9edfc46e828f197fcdb358b17ace Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 13 Jan 2020 21:10:48 +0300 Subject: database compaction must display UI message (cherry picked from commit c11e0132d5e3873ee61e999a82adbef47393623b) --- plugins/Dbx_mdbx/src/ui.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'plugins/Dbx_mdbx/src') 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; } ///////////////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3