summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/srmm_statusicon.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mir_app/src/srmm_statusicon.cpp b/src/mir_app/src/srmm_statusicon.cpp
index 12a613610e..580cf6d424 100644
--- a/src/mir_app/src/srmm_statusicon.cpp
+++ b/src/mir_app/src/srmm_statusicon.cpp
@@ -270,10 +270,11 @@ void KillModuleSrmmIcons(CMPluginBase *pPlugin)
static HGENMENU hmiEmpty;
-static INT_PTR svcEmptyHistory(WPARAM hContact, LPARAM)
+static INT_PTR svcEmptyHistory(WPARAM hContact, LPARAM lParam)
{
- if (IDYES != MessageBoxW(nullptr, TranslateT("Are you sure to remove all events from history?"), L"Miranda", MB_YESNO | MB_ICONQUESTION))
- return 1;
+ if (lParam == 0)
+ if (IDYES != MessageBoxW(nullptr, TranslateT("Are you sure to remove all events from history?"), L"Miranda", MB_YESNO | MB_ICONQUESTION))
+ return 1;
DB::ECPTR pCursor(DB::Events(hContact));
while (pCursor.FetchNext())