mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 01:50:48 +00:00
* Source/NSWindowController.m: Fixed a problem where controller marks
the window as loaded even when the nib failed to load. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30227 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
90135f15b9
commit
8676ead49c
2 changed files with 17 additions and 11 deletions
|
@ -302,13 +302,15 @@
|
|||
}
|
||||
|
||||
[self loadWindow];
|
||||
|
||||
[self _windowDidLoad];
|
||||
if ([_document respondsToSelector:
|
||||
@selector(windowControllerDidLoadNib:)])
|
||||
{
|
||||
[_document windowControllerDidLoadNib:self];
|
||||
}
|
||||
if ([self isWindowLoaded])
|
||||
{
|
||||
[self _windowDidLoad];
|
||||
if ([_document respondsToSelector:
|
||||
@selector(windowControllerDidLoadNib:)])
|
||||
{
|
||||
[_document windowControllerDidLoadNib:self];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return _window;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue