From 8a9d9a23e2f64016adedd0aa748d06d4c6d55459 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 1 Dec 2015 21:36:05 +0000 Subject: missing menu lines must be visible by default git-svn-id: http://svn.miranda-ng.org/main/trunk@15799 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/mir_app/src/menu_utils.cpp | 4 +--- 1 file changed, 1 insertion(+), 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; -- cgit v1.2.3