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:
Fred Kiefer 2005-10-18 07:46:25 +00:00
parent 9c2cf54e7e
commit b6da6cd684
2 changed files with 11 additions and 3 deletions

View file

@ -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

View file

@ -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)