diff options
author | George Hazan <ghazan@miranda.im> | 2019-03-07 22:38:02 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-03-07 22:40:54 +0300 |
commit | 6712ce9307350ef5c04f184b0cb80cfe75af77c5 (patch) | |
tree | 3baa482fecc7e53c7843e8ae89a6bc6678b0570d /protocols/JabberG/src/jabber_menu.cpp | |
parent | fab3905d91890102046dcc4554721991ae8ff413 (diff) |
Srmm_ModifyIcon now changes only tooltip and/or icon, Srmm_SetIconFlags controls flags
Diffstat (limited to 'protocols/JabberG/src/jabber_menu.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_menu.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
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)
|