From 2127d0a3c7f96a8769f3eced53bf5cd1008b768b Mon Sep 17 00:00:00 2001 From: culler Date: Sun, 27 Jan 2019 17:15:08 +0000 Subject: Fix over-correction in the last commit. We must allow item to be nil on macOS. --- macosx/tkMacOSXMenu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macosx/tkMacOSXMenu.c b/macosx/tkMacOSXMenu.c index ed8d0c3..0b84891 100644 --- a/macosx/tkMacOSXMenu.c +++ b/macosx/tkMacOSXMenu.c @@ -807,7 +807,7 @@ TkpPostMenu( if (itemIndex >= 0) { item = [menu itemAtIndex:itemIndex]; } - if (menu != nil && item != nil) { + if (menu != nil) { oldMode = Tcl_SetServiceMode(TCL_SERVICE_NONE); [menu popUpMenuPositioningItem:item atLocation:[win tkConvertPointFromScreen:location] -- cgit v0.12