Hopefully fixed a crash when popping up the menu like a madman.
authorKent Sutherland <ksuther@ithinksw.com>
Sun, 25 Jul 2004 19:00:36 +0000 (19:00 +0000)
committerKent Sutherland <ksuther@ithinksw.com>
Sun, 25 Jul 2004 19:00:36 +0000 (19:00 +0000)
MainController.m

index 5406ad9..64af7d0 100755 (executable)
@@ -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;
     }