From 35aba3d91e39932517046ff84ab7d3e4ef0cf932 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 1 Mar 2019 11:47:16 +0300 Subject: ICQ-WIM: - advanced options moved to the separate dialog; - option added to launch a browser on tray icon click; - now additional email events aren't added if one is already active; - duplicate notification removed --- protocols/ICQ-WIM/src/utils.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'protocols/ICQ-WIM/src/utils.cpp') diff --git a/protocols/ICQ-WIM/src/utils.cpp b/protocols/ICQ-WIM/src/utils.cpp index fb4df6b568..988984d781 100644 --- a/protocols/ICQ-WIM/src/utils.cpp +++ b/protocols/ICQ-WIM/src/utils.cpp @@ -333,7 +333,15 @@ void CIcqProto::EmailNotification(const wchar_t *pwszText) if (m_bUseTrayIcon) { char szServiceFunction[MAX_PATH]; - mir_snprintf(szServiceFunction, "%s%s", m_szModuleName, PS_GOTO_INBOX); + if (m_bLaunchMailbox) + mir_snprintf(szServiceFunction, "%s%s", m_szModuleName, PS_GOTO_INBOX); + else + mir_snprintf(szServiceFunction, "%s%s", m_szModuleName, PS_DUMMY); + + int i = 0; + while (CLISTEVENT *pcle = g_clistApi.pfnGetEvent(-1, i++)) + if (!mir_strcmp(pcle->pszService, szServiceFunction)) + return; CLISTEVENT cle = {}; cle.hDbEvent = 1; -- cgit v1.2.3