mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +00:00
Check [bc isLoaded] before making window first responder
This commit is contained in:
parent
9f62b46c7b
commit
dae13af553
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2021-11-18 Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* Source/NSBrowser.m: Check [bc isLoaded] in _remapColumnSubviews
|
||||
before making the window first responder.
|
||||
|
||||
2021-11-15 Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* Headers/AppKit/NSSplitView.h
|
||||
|
|
|
@ -3209,7 +3209,7 @@ static BOOL browserUseBezels;
|
|||
sc = [bc columnScrollView];
|
||||
[self addSubview: sc];
|
||||
|
||||
if ([bc columnMatrix] == firstResponder)
|
||||
if ([bc isLoaded] && [bc columnMatrix] == firstResponder)
|
||||
{
|
||||
[_window makeFirstResponder: firstResponder];
|
||||
setFirstResponder = YES;
|
||||
|
@ -3231,7 +3231,7 @@ static BOOL browserUseBezels;
|
|||
sc = [bc columnScrollView];
|
||||
[self addSubview: sc];
|
||||
|
||||
if ([bc columnMatrix] == firstResponder)
|
||||
if ([bc isLoaded] && [bc columnMatrix] == firstResponder)
|
||||
{
|
||||
[_window makeFirstResponder: firstResponder];
|
||||
setFirstResponder = YES;
|
||||
|
|
Loading…
Reference in a new issue