diff options
author | George Hazan <george.hazan@gmail.com> | 2015-06-27 06:46:09 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-06-27 06:46:09 +0000 |
commit | 1d2358d43cfcfed5df1f1f4a7d2d211d8d71c286 (patch) | |
tree | 36548766137d7864a6ab1e1765be1a58d3c5a13c /plugins/Clist_modern | |
parent | dcf71bc98f0298333494583bf1852dd9f9bea90b (diff) |
missing menu initialization call restored
git-svn-id: http://svn.miranda-ng.org/main/trunk@14407 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern')
-rw-r--r-- | plugins/Clist_modern/src/CLUIFrames/cluiframes.cpp | 2 | ||||
-rw-r--r-- | plugins/Clist_modern/src/CLUIFrames/groupmenu.cpp | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/plugins/Clist_modern/src/CLUIFrames/cluiframes.cpp b/plugins/Clist_modern/src/CLUIFrames/cluiframes.cpp index 4174008b90..272548fa78 100644 --- a/plugins/Clist_modern/src/CLUIFrames/cluiframes.cpp +++ b/plugins/Clist_modern/src/CLUIFrames/cluiframes.cpp @@ -35,6 +35,7 @@ static const int UNCOLLAPSED_FRAME_SIZE = 0; static const int DEFAULT_TITLEBAR_HEIGHT = 18;
void _AniAva_OnModulesUnload();
+void InitGroupMenus(void);
// GLOBALS
FRAMEWND *g_pfwFrames = NULL;
@@ -3456,6 +3457,7 @@ int LoadCLUIFramesModule(void) GapBetweenFrames = db_get_dw(NULL, "CLUIFrames", "GapBetweenFrames", SETTING_GAPFRAMES_DEFAULT);
g_nFramesCount = 0;
+ InitGroupMenus();
HookEvent(ME_SYSTEM_MODULESLOADED, CLUIFrameOnModulesLoad);
HookEvent(ME_CLIST_PREBUILDFRAMEMENU, CLUIFramesModifyContextMenuForFrame);
diff --git a/plugins/Clist_modern/src/CLUIFrames/groupmenu.cpp b/plugins/Clist_modern/src/CLUIFrames/groupmenu.cpp index 7bb10f52f3..0c6a9a5e77 100644 --- a/plugins/Clist_modern/src/CLUIFrames/groupmenu.cpp +++ b/plugins/Clist_modern/src/CLUIFrames/groupmenu.cpp @@ -225,8 +225,6 @@ void InitGroupMenus(void) Menu_ConfigureObject(hGroupMenuObject, MCO_OPT_ONADD_SERVICE, "CLISTMENUSGroup/GroupMenuonAddService");
// add exit command to menu
- GroupMenuParam gmp;
-
CLISTMENUITEM mi = { 0 };
mi.position = 1900000;
mi.pszService = "CloseAction";
@@ -270,6 +268,7 @@ void InitGroupMenus(void) mi.pszName = LPGEN("&About");
AddGroupMenuItem(0, (LPARAM)&mi);
+ GroupMenuParam gmp = {};
mi.flags = 0;
mi.position = 100000;
mi.icolibItem = iconItem[0].hIcolib;
|