From c354268f4470463c985723f1f721a4a3e9b6e537 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Mon, 27 Nov 2017 20:57:52 +0000 Subject: [PATCH] Top-level menus should not be inactivated. Their items can be. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12572 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Sys_Menu_Bar.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fl_Sys_Menu_Bar.mm b/src/Fl_Sys_Menu_Bar.mm index 16c4d4b8f..22d7c983a 100644 --- a/src/Fl_Sys_Menu_Bar.mm +++ b/src/Fl_Sys_Menu_Bar.mm @@ -309,7 +309,7 @@ static void createSubMenu( NSMenu *mh, pFl_Menu_Item &mm, const Fl_Menu_Item *m miCnt = [FLMenuItem addNewItem:mm menu:submenu action:selector]; setMenuFlags( submenu, miCnt, mm ); setMenuShortcut( submenu, miCnt, mm ); - if ( mm->flags & FL_MENU_INACTIVE || (mitem && (mitem->flags & FL_MENU_INACTIVE))) { + if (mitem && (mm->flags & FL_MENU_INACTIVE || mitem->flags & FL_MENU_INACTIVE)) { NSMenuItem *item = [submenu itemAtIndex:miCnt]; [item setEnabled:NO]; }