diff options
author | George Hazan <george.hazan@gmail.com> | 2023-12-22 17:56:49 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-12-22 17:56:49 +0300 |
commit | 496cd8776e8fcf49284717fa717e8bbe620bcc3f (patch) | |
tree | 360369bda0f21b7767ff87d406fbd9371b0adf68 | |
parent | af546e2f55ccb9a270ce4967d1942aebfcbbea19 (diff) |
fixes #4000 completely
-rw-r--r-- | include/m_clistint.h | 1 | ||||
-rw-r--r-- | src/mir_app/src/srmm_util.cpp | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/m_clistint.h b/include/m_clistint.h index 168d8fb0ec..d2fa84bc3b 100644 --- a/include/m_clistint.h +++ b/include/m_clistint.h @@ -290,6 +290,7 @@ MIR_APP_DLL(int) Clist_TrayIconSetBaseInfo(HICON hIcon, const char *szPref MIR_APP_DLL(void) Clist_TrayIconUpdateBase(const char *szChangedProto);
MIR_APP_DLL(void) Clist_TraySetTimer();
+MIR_APP_DLL(CListEvent*) Clist_FindEvent(MCONTACT hContact, MEVENT hDbEvent);
MIR_APP_DLL(CListEvent*) Clist_GetEvent(MCONTACT hContact, int idx);
MIR_APP_DLL(CListEvent*) Clist_GetEventByMenu(int iMenuId);
diff --git a/src/mir_app/src/srmm_util.cpp b/src/mir_app/src/srmm_util.cpp index 978ebd8aa8..f20067fa77 100644 --- a/src/mir_app/src/srmm_util.cpp +++ b/src/mir_app/src/srmm_util.cpp @@ -31,6 +31,9 @@ const char *g_pszHotkeySection; MIR_APP_DLL(void) Srmm_AddEvent(MCONTACT hContact, MEVENT hDbEvent)
{
+ if (Clist_FindEvent(hContact, hDbEvent))
+ return;
+
wchar_t toolTip[256];
mir_snwprintf(toolTip, TranslateT("Message from %s"), Clist_GetContactDisplayName(hContact));
|