From 0b0d67ac83acfad048c61a70c17861f1f67ceef1 Mon Sep 17 00:00:00 2001 From: Kent Sutherland Date: Sun, 25 Jul 2004 19:00:36 +0000 Subject: [PATCH] Hopefully fixed a crash when popping up the menu like a madman. --- MainController.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MainController.m b/MainController.m index 5406ad9..64af7d0 100755 --- a/MainController.m +++ b/MainController.m @@ -1003,8 +1003,9 @@ static MainController *sharedController; - (void)popupMenu { if (!_popped) { - NSMenu *menu = [menuController menu]; _popped = YES; + [self menuClicked]; + NSMenu *menu = [statusItem menu]; [(NSCarbonMenuImpl *)[menu _menuImpl] popUpMenu:menu atLocation:[NSEvent mouseLocation] width:1 forView:nil withSelectedItem:-30 withFont:[NSFont menuFontOfSize:32]]; _popped = NO; } -- 2.20.1