mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 11:10:59 +00:00
Don't call NSDocumentController on application termination, if not needed.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21841 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3c5c7076b0
commit
8e111c943a
2 changed files with 11 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2005-10-18 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
|
* Source/NSApplication.m (-terminate:): Call NSDocumentControllers
|
||||||
|
review unsaved code only when this is a document based application.
|
||||||
|
|
||||||
2005-10-17 Fred Kiefer <FredKiefer@gmx.de>
|
2005-10-17 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Source/NSSavePanel.m (-performDragOperation:): Set file name and
|
* Source/NSSavePanel.m (-performDragOperation:): Set file name and
|
||||||
|
|
|
@ -3020,9 +3020,12 @@ image.
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
shouldTerminate = [[NSDocumentController sharedDocumentController]
|
if ([NSDocumentController isDocumentBasedApplication])
|
||||||
reviewUnsavedDocumentsWithAlertTitle: _(@"Quit")
|
{
|
||||||
cancellable:YES];
|
shouldTerminate = [[NSDocumentController sharedDocumentController]
|
||||||
|
reviewUnsavedDocumentsWithAlertTitle: _(@"Quit")
|
||||||
|
cancellable:YES];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (shouldTerminate == NSTerminateNow)
|
if (shouldTerminate == NSTerminateNow)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue