Revision: 15421
          http://sourceforge.net/p/skim-app/code/15421
Author:   hofman
Date:     2025-06-10 08:42:00 +0000 (Tue, 10 Jun 2025)
Log Message:
-----------
invalidate revert during presentation

Modified Paths:
--------------
    trunk/SKMainDocument.m

Modified: trunk/SKMainDocument.m
===================================================================
--- trunk/SKMainDocument.m      2025-06-09 14:31:55 UTC (rev 15420)
+++ trunk/SKMainDocument.m      2025-06-10 08:42:00 UTC (rev 15421)
@@ -1392,7 +1392,7 @@
 
 - (BOOL)validateUserInterfaceItem:(id <NSValidatedUserInterfaceItem>)anItem {
        if ([anItem action] == @selector(revertDocumentToSaved:)) {
-        if ([self fileURL] == nil || [[self fileURL] 
checkResourceIsReachableAndReturnError:NULL] == NO)
+        if ([self fileURL] == nil || [[self fileURL] 
checkResourceIsReachableAndReturnError:NULL] == NO || [[self 
mainWindowController] interactionMode] == SKPresentationMode)
             return NO;
         if ([self isDocumentEdited] || [fileUpdateChecker fileChangedOnDisk] ||
                NSOrderedAscending == [[self fileModificationDate] 
compare:fileModificationDate([self fileURL])])

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

Reply via email to