From 88790eed4ffd9ca555c8f9b73cb014a93b57a34f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 22 Jun 2015 20:38:56 +0000 Subject: Menu_ModifyItem unbound from CLISTMENUITEM structure git-svn-id: http://svn.miranda-ng.org/main/trunk@14334 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Sessions/Src/Main.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'plugins/Sessions/Src') diff --git a/plugins/Sessions/Src/Main.cpp b/plugins/Sessions/Src/Main.cpp index 10c2929aec..153ab20540 100644 --- a/plugins/Sessions/Src/Main.cpp +++ b/plugins/Sessions/Src/Main.cpp @@ -795,11 +795,10 @@ static int PluginInit(WPARAM, LPARAM) // Main menu CLISTMENUITEM cl = { 0 }; cl.position = 1000000000; - cl.flags = CMIM_ALL; cl.pszName = LPGEN("Save session..."); cl.pszPopupName = LPGEN("Sessions Manager"); - cl.icolibItem = iconList[0].hIcolib; + cl.icolibItem = iconList[4].hIcolib; cl.pszService = MS_SESSIONS_SAVEUSERSESSION; hmSaveCurrentSession = Menu_AddMainMenuItem(&cl); @@ -818,12 +817,6 @@ static int PluginInit(WPARAM, LPARAM) cl.icolibItem = iconList[5].hIcolib; cl.position = 10100000; Menu_AddMainMenuItem(&cl); - - memset(&cl, 0, sizeof(cl)); - cl.flags = CMIM_ICON; - cl.icolibItem = iconList[4].hIcolib; - Menu_ModifyItem(hmSaveCurrentSession, &cl); - return 0; } -- cgit v1.2.3