summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Clist_modern/src/CLUIFrames/cluiframes.cpp2
-rw-r--r--plugins/Clist_modern/src/CLUIFrames/groupmenu.cpp3
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;