diff options
Diffstat (limited to 'macosx/tkMacOSXMenu.c')
-rw-r--r-- | macosx/tkMacOSXMenu.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/macosx/tkMacOSXMenu.c b/macosx/tkMacOSXMenu.c index 3b61c47..7d2a073 100644 --- a/macosx/tkMacOSXMenu.c +++ b/macosx/tkMacOSXMenu.c @@ -1561,7 +1561,10 @@ TkMacOSXClearMenubarActive(void) if (mainMenu && [mainMenu isKindOfClass:[TKMenu class]]) { TkMenu *menuPtr = [(TKMenu *) mainMenu tkMenu]; - if (menuPtr && menuPtr->numEntries && menuPtr->entries) { + if (menuPtr && + !(menuPtr->menuFlags & MENU_DELETION_PENDING) && + menuPtr->numEntries > 0 && + menuPtr->entries != NULL) { RecursivelyClearActiveMenu(menuPtr); } } |