summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-03-09 16:25:07 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-03-09 16:25:07 +0300
commita7e8fb839f9e8eb92e7dc66b189faa93c37a9957 (patch)
tree0f10a9fbb38d068ebb7ff0a58d25cbb43654e4f3 /src
parentc844602f5ce38621c6bd832155a43b0b8f8efc16 (diff)
MS_HISTORY_EMPTY - added flag to wipe history automagically
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())