mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 22:50:37 +00:00
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:
parent
d13b785e37
commit
c4110a7ede
2 changed files with 13 additions and 7 deletions
|
@ -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])
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue