mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 06:51:44 +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
9c2cf54e7e
commit
b6da6cd684
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>
|
||||
|
||||
* Source/NSSavePanel.m (-performDragOperation:): Set file name and
|
||||
|
|
|
@ -3020,9 +3020,12 @@ image.
|
|||
}
|
||||
else
|
||||
{
|
||||
shouldTerminate = [[NSDocumentController sharedDocumentController]
|
||||
reviewUnsavedDocumentsWithAlertTitle: _(@"Quit")
|
||||
cancellable:YES];
|
||||
if ([NSDocumentController isDocumentBasedApplication])
|
||||
{
|
||||
shouldTerminate = [[NSDocumentController sharedDocumentController]
|
||||
reviewUnsavedDocumentsWithAlertTitle: _(@"Quit")
|
||||
cancellable:YES];
|
||||
}
|
||||
}
|
||||
|
||||
if (shouldTerminate == NSTerminateNow)
|
||||
|
|
Loading…
Reference in a new issue