summaryrefslogtreecommitdiff
path: root/src/mir_app
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-08-11 17:53:02 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-08-11 17:53:02 +0300
commit744b0bd4a8d50a24c1f39b4561049076934ff5a4 (patch)
tree8bcc4f40a3e2f03dabed81c1889ac32c5c07a889 /src/mir_app
parentca545be6f06c10b137ae0586ecdf634b29c1ee04 (diff)
fixes #2516 (Сжатие базы через менеджер профилей не выдаёт никаких сообщений)
Diffstat (limited to 'src/mir_app')
-rw-r--r--src/mir_app/src/profilemanager.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mir_app/src/profilemanager.cpp b/src/mir_app/src/profilemanager.cpp
index 37145b16e6..fc4912cf7b 100644
--- a/src/mir_app/src/profilemanager.cpp
+++ b/src/mir_app/src/profilemanager.cpp
@@ -326,7 +326,7 @@ class CChooseProfileDlg : public CDlgBase
void DeleteProfile(const LVITEM &item)
{
CMStringW wszMessage(FORMAT, TranslateT("Are you sure you want to remove profile \"%s\"?"), item.pszText);
- if (IDYES != MessageBox(nullptr, wszMessage, L"Miranda NG", MB_YESNO | MB_TASKMODAL | MB_ICONWARNING))
+ if (IDYES != MessageBoxW(nullptr, wszMessage, L"Miranda NG", MB_YESNO | MB_TASKMODAL | MB_ICONWARNING))
return;
wszMessage.Format(L"%s\\%s%c", m_pd->ptszProfileDir, item.pszText, 0);
@@ -357,6 +357,8 @@ class CChooseProfileDlg : public CDlgBase
if (auto *db = dblink->Load(wszFullName, false)) {
db->Compact();
delete db;
+
+ MessageBoxW(nullptr, TranslateT("Database compacted successfully"), L"Miranda NG", MB_OK | MB_ICONINFORMATION);
}
}