Revision: 28299
          http://sourceforge.net/p/bibdesk/svn/28299
Author:   hofman
Date:     2023-06-06 22:23:25 +0000 (Tue, 06 Jun 2023)
Log Message:
-----------
don't try to preview missing file

Modified Paths:
--------------
    trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m

Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m      2023-06-06 
21:33:58 UTC (rev 28298)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m      2023-06-06 
22:23:25 UTC (rev 28299)
@@ -3434,7 +3434,9 @@
         // change selection first, as Finder does
         if ([event clickCount] > 1 && i != NSNotFound) {
             if (flags & NSAlternateKeyMask) {
-                [self _previewURL:[self URLAtIndex:i] forIconInRect:[self 
_rectOfIconInRow:r column:c]];
+                NSURL *aURL = [self URLAtIndex:i];
+                if (aURL && NO == [aURL isEqual:[FVIcon missingFileURL]])
+                    [self _previewURL:aURL forIconInRect:[self 
_rectOfIconInRow:r column:c]];
             } else {
                 [self openSelectedURLs:self];
             }

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



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to