* 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:
jonathanosx 2010-04-23 19:26:44 +00:00
parent 90135f15b9
commit 8676ead49c
2 changed files with 17 additions and 11 deletions

View file

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