diff options
author | George Hazan <ghazan@miranda.im> | 2019-03-01 11:47:16 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-03-01 11:47:16 +0300 |
commit | 35aba3d91e39932517046ff84ab7d3e4ef0cf932 (patch) | |
tree | 69015cd0169d2134b0e8a61b87c7dd9b27865069 /protocols/ICQ-WIM/src/utils.cpp | |
parent | 2e9d13165b4fd765d95f88d26282be022e708b0d (diff) |
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
Diffstat (limited to 'protocols/ICQ-WIM/src/utils.cpp')
-rw-r--r-- | protocols/ICQ-WIM/src/utils.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
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; |