mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 01:50:48 +00:00
Avoid loading a window controller's nib prematurely if the document
edited status is changed. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30500 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f235cc977a
commit
fe438e779e
2 changed files with 10 additions and 2 deletions
|
@ -208,7 +208,8 @@
|
|||
|
||||
- (void) setDocumentEdited: (BOOL)flag
|
||||
{
|
||||
[[self window] setDocumentEdited: flag];
|
||||
if ([self isWindowLoaded])
|
||||
[[self window] setDocumentEdited: flag];
|
||||
}
|
||||
|
||||
- (void) setWindowFrameAutosaveName:(NSString *)name
|
||||
|
@ -368,6 +369,7 @@
|
|||
else
|
||||
{
|
||||
[_window setReleasedWhenClosed: YES];
|
||||
[_window setDocumentEdited: [_document isDocumentEdited]];
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -402,7 +404,7 @@
|
|||
NSString *title = [self windowTitleForDocumentDisplayName: displayName];
|
||||
|
||||
/* If they just want to display the filename, use the fancy method */
|
||||
/* NB For compatibility with Mac OS X, a document display name is equal
|
||||
/* NB For compatibility with Mac OS X, a document's display name is equal
|
||||
to its last path component, so we check for that here too */
|
||||
if (filename != nil &&
|
||||
([title isEqualToString: filename] ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue