Fix an exception when closing a window with open panels

This commit is contained in:
Lior Halphon
2024-11-16 17:32:13 +02:00
parent f1f97f0692
commit 14cf76776a

View File

@@ -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