diff options
author | George Hazan <george.hazan@gmail.com> | 2023-12-29 15:57:41 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-12-29 15:57:41 +0300 |
commit | fd6cba75c415e3353dbd692c432304609e4bd427 (patch) | |
tree | f4a8617d26379112da8bb90e908eddae894be888 | |
parent | acc57c49daf7de42176c99d9022d9d4f6265ce7e (diff) |
fixes #4088 (ICQ: пункт "добавить в избранное" виден во всех протоколах)
-rw-r--r-- | protocols/ICQ-WIM/src/menus.cpp | 5 | ||||
-rw-r--r-- | protocols/ICQ-WIM/src/proto.h | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/protocols/ICQ-WIM/src/menus.cpp b/protocols/ICQ-WIM/src/menus.cpp index 0721a2dc39..c6932f60a1 100644 --- a/protocols/ICQ-WIM/src/menus.cpp +++ b/protocols/ICQ-WIM/src/menus.cpp @@ -24,8 +24,11 @@ int CIcqProto::OnPrebuildMenu(WPARAM hContact, LPARAM lParam) if (!Proto_IsProtoOnContact(hContact, m_szModuleName)) { Menu_ShowItem(hmiForward, false); Menu_ShowItem(hmiConvert, false); + Menu_ShowItem(hmiFavorites, false); } else { + Menu_ShowItem(hmiFavorites, true); + auto *dbei = (DB::EventInfo *)lParam; Menu_ShowItem(hmiForward, dbei->eventType == EVENTTYPE_MESSAGE || dbei->eventType == EVENTTYPE_FILE); @@ -54,7 +57,7 @@ void CIcqProto::InitMenus() mi.position++; mi.hIcolibItem = Skin_GetIconHandle(SKINICON_OTHER_ADDCONTACT); mi.name.a = LPGEN("Add to favorites"); - hmiConvert = Menu_AddNewStoryMenuItem(&mi, 2); + hmiFavorites = Menu_AddNewStoryMenuItem(&mi, 2); mi.position++; mi.hIcolibItem = Skin_GetIconHandle(SKINICON_EVENT_FILE); diff --git a/protocols/ICQ-WIM/src/proto.h b/protocols/ICQ-WIM/src/proto.h index b6462bbbda..c0339b38aa 100644 --- a/protocols/ICQ-WIM/src/proto.h +++ b/protocols/ICQ-WIM/src/proto.h @@ -378,7 +378,7 @@ class CIcqProto : public PROTO<CIcqProto> ////////////////////////////////////////////////////////////////////////////////////////
// Menus
- HGENMENU hmiForward, hmiConvert;
+ HGENMENU hmiForward, hmiConvert, hmiFavorites;
void InitMenus();
|