mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Showing bundle menu with no status bar would cause infinite loop
This is because we were forwarding the message to ‘nil’ rather than the status bar, and ‘nil’ here would be first responder, i.e. ourself. Fixes textmate/bugs#17
This commit is contained in:
@@ -630,6 +630,9 @@ private:
|
||||
|
||||
- (void)showBundlesMenu:(id)sender
|
||||
{
|
||||
if(!self.statusBar)
|
||||
return NSBeep();
|
||||
|
||||
[NSApp sendAction:_cmd to:self.statusBar from:self];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user