From 6712ce9307350ef5c04f184b0cb80cfe75af77c5 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 7 Mar 2019 22:38:02 +0300 Subject: Srmm_ModifyIcon now changes only tooltip and/or icon, Srmm_SetIconFlags controls flags --- protocols/JabberG/src/jabber_menu.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'protocols/JabberG/src') diff --git a/protocols/JabberG/src/jabber_menu.cpp b/protocols/JabberG/src/jabber_menu.cpp index 067fadf6a0..22dd87b721 100644 --- a/protocols/JabberG/src/jabber_menu.cpp +++ b/protocols/JabberG/src/jabber_menu.cpp @@ -878,13 +878,8 @@ void CJabberProto::MenuUpdateSrmmIcon(JABBER_LIST_ITEM *item) return; MCONTACT hContact = HContactFromJID(item->jid); - if (!hContact) - return; - - StatusIconData sid = {}; - sid.szModule = m_szModuleName; - sid.flags = item->arResources.getCount() ? 0 : MBF_DISABLED; - Srmm_ModifyIcon(hContact, &sid); + if (hContact) + Srmm_SetIconFlags(hContact, m_szModuleName, 0, item->arResources.getCount() ? 0 : MBF_DISABLED); } int CJabberProto::OnProcessSrmmEvent(WPARAM, LPARAM lParam) -- cgit v1.2.3