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