diff options
author | George Hazan <george.hazan@gmail.com> | 2015-06-27 19:28:09 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-06-27 19:28:09 +0000 |
commit | 03df9032e2b6248fed2bcf1e6d40fbfba4581779 (patch) | |
tree | 29275137a963939beed2b788ade711ef131f4a3c /plugins/DbEditorPP | |
parent | 68677c938c33f5d60ad800e0872d824918d56243 (diff) |
minor menu related fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@14420 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/DbEditorPP')
-rw-r--r-- | plugins/DbEditorPP/src/main.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/DbEditorPP/src/main.cpp b/plugins/DbEditorPP/src/main.cpp index c887ddb809..ab44b2f97e 100644 --- a/plugins/DbEditorPP/src/main.cpp +++ b/plugins/DbEditorPP/src/main.cpp @@ -115,15 +115,14 @@ int ModulesLoaded(WPARAM, LPARAM) // Register menu item
CLISTMENUITEM mi = { 0 };
mi.hParentMenu = Menu_CreateRoot(MO_MAIN, LPGENT("Database"), 1900000001);
+
mi.position = 1900000001;
mi.icolibItem = GetIcoLibHandle(ICO_DBE_BUTT);
mi.name.a = modFullname;
mi.pszService = "DBEditorpp/MenuCommand";
Menu_AddMainMenuItem(&mi);
- memset(&mi, 0, sizeof(mi));
- mi.position = 1900000001;
- mi.flags = 0;
+ mi.hParentMenu = NULL;
mi.icolibItem = GetIcoLibHandle(ICO_REGUSER);
mi.name.a = LPGEN("Open user tree in DBE++");
mi.pszService = "DBEditorpp/MenuCommand";
@@ -156,7 +155,6 @@ int ModulesLoaded(WPARAM, LPARAM) if (bServiceMode)
CallService("DBEditorpp/MenuCommand", 0, 0);
-
return 0;
}
|