diff options
author | George Hazan <george.hazan@gmail.com> | 2015-12-01 21:36:05 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-12-01 21:36:05 +0000 |
commit | 8a9d9a23e2f64016adedd0aa748d06d4c6d55459 (patch) | |
tree | 1c4c1ff66da26b18f320a6e5dec292d64c7ec483 /src | |
parent | f4e8c71e8ee865ae72938f996c5654a0a2464ca2 (diff) |
missing menu lines must be visible by default
git-svn-id: http://svn.miranda-ng.org/main/trunk@15799 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/menu_utils.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mir_app/src/menu_utils.cpp b/src/mir_app/src/menu_utils.cpp index a91876d1ff..ec0dd7bf22 100644 --- a/src/mir_app/src/menu_utils.cpp +++ b/src/mir_app/src/menu_utils.cpp @@ -902,7 +902,7 @@ static HMENU BuildRecursiveMenu(HMENU hMenu, TMO_IntMenuItem *pRootMenu, WPARAM // if we have to check & apply database settings
if (!(mi->flags & CMIF_SYSTEM) && pmo->m_bUseUserDefinedItems) {
char szSetting[256], menuItemName[256];
- int visible = 0, pos = 0;
+ int visible = true, pos = 0;
if (bOldMenuFormat) {
GetMenuItemName(pmi, menuItemName, sizeof(menuItemName));
@@ -937,8 +937,6 @@ static HMENU BuildRecursiveMenu(HMENU hMenu, TMO_IntMenuItem *pRootMenu, WPARAM replaceStrT(pmi->CustomName, tszCustomName);
}
}
- else if (pmi->submenu.first != NULL)
- visible = 1;
}
if (!visible)
continue;
|