From a8c93cfbf235c31cf604cb6bd40009e9bf88f36a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 30 Jun 2015 20:27:23 +0000 Subject: - fix for the old perversion with manual protocol root calculation; - protocol menu root is always created by the core; - other minor problems with protocol menus in main menu went away git-svn-id: http://svn.miranda-ng.org/main/trunk@14462 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_menus.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'protocols/SkypeWeb') diff --git a/protocols/SkypeWeb/src/skype_menus.cpp b/protocols/SkypeWeb/src/skype_menus.cpp index 47c9138cd4..4c5c1c3049 100644 --- a/protocols/SkypeWeb/src/skype_menus.cpp +++ b/protocols/SkypeWeb/src/skype_menus.cpp @@ -108,19 +108,8 @@ void CSkypeProto::UninitMenus() int CSkypeProto::OnInitStatusMenu() { - HGENMENU hStatusMenuRoot = Menu_GetProtocolRoot(m_szModuleName); - if (!hStatusMenuRoot) - { - CMenuItem mi; - mi.name.t = m_tszUserName; - mi.position = -1999901006; - mi.flags = CMIF_TCHAR | CMIF_KEEPUNTRANSLATED; - mi.hIcolibItem = Skin_GetIconHandle("main"); - hStatusMenuRoot = Menu_AddProtoMenuItem(&mi); - } - CMenuItem mi; - mi.root = hStatusMenuRoot; + mi.root = Menu_GetProtocolRoot(this); mi.pszService = "/CreateNewChat"; CreateProtoService(mi.pszService, &CSkypeProto::SvcCreateChat); -- cgit v1.2.3