mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 19:37:38 +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
|
@ -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…
Add table
Add a link
Reference in a new issue