From 99d5dc99376496f440da0ee5f71b92a989252814 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 28 Jun 2015 13:41:42 +0000 Subject: another root in contact menu git-svn-id: http://svn.miranda-ng.org/main/trunk@14425 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Quotes/src/Forex.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'plugins/Quotes/src/Forex.cpp') 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); -- cgit v1.2.3