summaryrefslogtreecommitdiff
path: root/plugins/Quotes/src/Forex.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Quotes/src/Forex.cpp')
-rw-r--r--plugins/Quotes/src/Forex.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/plugins/Quotes/src/Forex.cpp b/plugins/Quotes/src/Forex.cpp
index 0fa62f0270..8a857aae89 100644
--- a/plugins/Quotes/src/Forex.cpp
+++ b/plugins/Quotes/src/Forex.cpp
@@ -127,10 +127,13 @@ namespace
HookEvent(ME_CLIST_PREBUILDCONTACTMENU, Quotes_PrebuildContactMenu);
- if (bSubGroups)
- mi.hParentMenu = Menu_CreateRoot(MO_CONTACT, _T(QUOTES_PROTOCOL_NAME), 20100004, Quotes_GetIconHandle(IDI_ICON_MAIN));
- else
- mi.hParentMenu = NULL;
+ if (bSubGroups) {
+ CLISTMENUITEM miroot = { 0 };
+ miroot.icolibItem = Quotes_GetIconHandle(IDI_ICON_MAIN);
+ miroot.name.a = QUOTES_PROTOCOL_NAME;
+ mi.hParentMenu = Menu_AddContactMenuItem(&miroot);
+ }
+ else mi.hParentMenu = NULL;
mi.name.t = LPGENT("Refresh");
mi.icolibItem = Quotes_GetIconHandle(IDI_ICON_REFRESH);