diff options
author | George Hazan <george.hazan@gmail.com> | 2015-06-28 13:41:42 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-06-28 13:41:42 +0000 |
commit | 99d5dc99376496f440da0ee5f71b92a989252814 (patch) | |
tree | fec270534bf2169401c468822a5404b162126103 /plugins/Quotes/src | |
parent | 4f067273c1d093da8480ea9f511b1ce41071efe2 (diff) |
another root in contact menu
git-svn-id: http://svn.miranda-ng.org/main/trunk@14425 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Quotes/src')
-rw-r--r-- | plugins/Quotes/src/Forex.cpp | 11 |
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);
|