mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-20 22:27:41 +00:00
* Source/NSWindowController.m (-initWithWindow:): Set the owner to
self and only call setDocument: if we have an actual window. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34825 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b579efa85d
commit
3d73efb55c
2 changed files with 7 additions and 1 deletions
|
@ -110,14 +110,15 @@
|
|||
ASSIGN(_window_frame_autosave_name, @"");
|
||||
_wcFlags.should_cascade = YES;
|
||||
//_wcFlags.should_close_document = NO;
|
||||
_owner = self;
|
||||
|
||||
[self setWindow: window];
|
||||
if (_window != nil)
|
||||
{
|
||||
[self _windowDidLoad];
|
||||
[self setDocument: nil];
|
||||
}
|
||||
|
||||
[self setDocument: nil];
|
||||
return self;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue