mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-31 18:02:04 +02:00
Fix an exception when closing a window with open panels
This commit is contained in:
@@ -3,7 +3,9 @@
|
||||
@implementation GBPanel
|
||||
- (void)becomeKeyWindow
|
||||
{
|
||||
[_ownerWindow makeMainWindow];
|
||||
if ([_ownerWindow canBecomeMainWindow]) {
|
||||
[_ownerWindow makeMainWindow];
|
||||
}
|
||||
[super becomeKeyWindow];
|
||||
}
|
||||
@end
|
||||
|
Reference in New Issue
Block a user