* 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:
Fred Kiefer 2012-02-27 12:23:05 +00:00
parent b579efa85d
commit 3d73efb55c
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2012-02-27 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSWindowController.m (-initWithWindow:): Set the owner to
self and only call setDocument: if we have an actual window.
2012-02-24 Eric Wasylishen <ewasylishen@gmail.com>
* Headers/AppKit/NSImageRep.h: Add comment clarifying that -draw

View file

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