Revision: 15537 http://sourceforge.net/p/skim-app/code/15537 Author: hofman Date: 2025-06-23 22:50:55 +0000 (Mon, 23 Jun 2025) Log Message: ----------- make sure no document is in presentation mode when terminating, so cleanup is properly performed.
Modified Paths: -------------- trunk/SKApplicationController.m Modified: trunk/SKApplicationController.m =================================================================== --- trunk/SKApplicationController.m 2025-06-23 22:04:15 UTC (rev 15536) +++ trunk/SKApplicationController.m 2025-06-23 22:50:55 UTC (rev 15537) @@ -312,6 +312,17 @@ [self registerForCurrentDocumentsNotifications]; } +- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)application { + for (NSDocument *doc in [[NSDocumentController sharedDocumentController] documents]) { + if ([doc interactionMode] == SKPresentationMode) { + if (currentDocumentsTimer == nil) + [self registerForCurrentDocumentsNotifications]; + return NSTerminateCancel; + } + } + return NSTerminateNow; +} + #pragma mark Updater - (void)updaterWillRelaunchApplication:(SPUUpdater *)updater { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Skim-app-commit mailing list Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit