Revision: 14759
          http://sourceforge.net/p/skim-app/code/14759
Author:   hofman
Date:     2024-11-28 16:36:53 +0000 (Thu, 28 Nov 2024)
Log Message:
-----------
disable copy from thumbnail table when the pdf is locked

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

Modified: trunk/SKMainWindowController_UI.m
===================================================================
--- trunk/SKMainWindowController_UI.m   2024-11-28 14:52:16 UTC (rev 14758)
+++ trunk/SKMainWindowController_UI.m   2024-11-28 16:36:53 UTC (rev 14759)
@@ -606,11 +606,12 @@
 }
 
 - (BOOL)tableView:(NSTableView *)tv canCopyRowsWithIndexes:(NSIndexSet 
*)rowIndexes {
-    if ([tv isEqual:leftSideController.thumbnailTableView] ||
-        [tv isEqual:leftSideController.findTableView] ||
-        [tv isEqual:leftSideController.groupedFindTableView]) {
-        return [rowIndexes count] > 0;
-    }
+    if ([tv isEqual:leftSideController.thumbnailTableView]) {
+        return [rowIndexes count] > 0 && [[self pdfDocument] isLocked] == NO;
+    } else if ([tv isEqual:leftSideController.findTableView] ||
+         [tv isEqual:leftSideController.groupedFindTableView]) {
+         return [rowIndexes count] > 0;
+     }
     return NO;
 }
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to