From: Kent Sutherland Date: Sun, 25 Jul 2004 19:00:36 +0000 (+0000) Subject: Hopefully fixed a crash when popping up the menu like a madman. X-Git-Tag: v1.4~16 X-Git-Url: http://git.ithinksw.org/MenuTunes.git/commitdiff_plain/0b0d67ac83acfad048c61a70c17861f1f67ceef1 Hopefully fixed a crash when popping up the menu like a madman. --- 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; }