summaryrefslogtreecommitdiff
path: root/plugins/StatusManager/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-05-22 18:00:57 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-05-22 18:00:57 +0300
commitfeac2b1a6a79c9d0bb58b0825ec2a776b888f9ce (patch)
treeef2fde024f8e13ac1ff5f2de8c772066319b3e6c /plugins/StatusManager/src
parent737d05018bbc2da54414bea0c2ccce6f1e15bde2 (diff)
m_genmenu.h unbound from hLangpack
Diffstat (limited to 'plugins/StatusManager/src')
-rw-r--r--plugins/StatusManager/src/StartupStatus/ss_profiles.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/StatusManager/src/StartupStatus/ss_profiles.cpp b/plugins/StatusManager/src/StartupStatus/ss_profiles.cpp
index 46db3d1299..c0345e7441 100644
--- a/plugins/StatusManager/src/StartupStatus/ss_profiles.cpp
+++ b/plugins/StatusManager/src/StartupStatus/ss_profiles.cpp
@@ -57,7 +57,7 @@ static INT_PTR profileService(WPARAM, LPARAM, LPARAM param)
static int CreateMainMenuItems(WPARAM, LPARAM)
{
- CMenuItem mi;
+ CMenuItem mi(g_plugin);
mi.position = 2000100000;
mi.flags = CMIF_UNICODE;
mcount = 0;
@@ -68,7 +68,7 @@ static int CreateMainMenuItems(WPARAM, LPARAM)
continue;
if (db_get_b(0, SSMODULENAME, OptName(i, SETTING_INSUBMENU), 1) && !mi.root) {
- mi.root = Menu_CreateRoot(MO_STATUS, LPGENW("Status profiles"), 2000100000);
+ mi.root = g_plugin.addRootMenu(MO_STATUS, LPGENW("Status profiles"), 2000100000);
Menu_ConfigureItem(mi.root, MCI_OPT_UID, "1AB30D51-BABA-4B27-9288-1A12278BAD8D");
}