Move code to set the window frame autosave name of a window

controller's window to match Cocoa behavior.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31945 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Wolfgang Lux 2011-01-24 22:05:36 +00:00
parent d13b785e37
commit c4110a7ede
2 changed files with 13 additions and 7 deletions

View file

@ -378,6 +378,11 @@
[_window setDocumentEdited: [_document isDocumentEdited]];
}
/* Make sure window sizes itself right */
if ([_window_frame_autosave_name length] > 0)
{
[_window setFrameAutosaveName: _window_frame_autosave_name];
}
}
}
@ -445,13 +450,6 @@
_wcFlags.nib_is_loaded = YES;
[self synchronizeWindowTitleWithDocumentName];
/* Make sure window sizes itself right */
if ([_window_frame_autosave_name length] > 0)
{
[_window setFrameUsingName: _window_frame_autosave_name];
[_window setFrameAutosaveName: _window_frame_autosave_name];
}
if ([self shouldCascadeWindows])
{