summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}
/////////////////////////////////////////////////////////////////////////////////////////