Revision: 23902
http://sourceforge.net/p/bibdesk/svn/23902
Author: hofman
Date: 2019-06-28 14:03:49 +0000 (Fri, 28 Jun 2019)
Log Message:
-----------
can only download from fileview when editable
Modified Paths:
--------------
trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m
Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m 2019-06-28
09:36:59 UTC (rev 23901)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m 2019-06-28
14:03:49 UTC (rev 23902)
@@ -3811,7 +3811,7 @@
else if (action == @selector(previewAction:))
return selectionCount > 0;
else if (action == @selector(paste:))
- return [self isEditable];
+ return isEditable;
else if (action == @selector(submenuAction:))
return selectionCount > 1 || ([_selectionIndexes count] == 1 && [aURL
isFileURL]);
else if (action == @selector(changeFinderLabel:) || [anItem tag] ==
FVChangeLabelMenuItemTag) {
@@ -3848,7 +3848,7 @@
return enabled;
}
else if (action == @selector(downloadSelectedLink:) || action ==
@selector(downloadCopyOfSelectedLink:)) {
- if ([self allowsDownloading]) {
+ if (isEditable && [self allowsDownloading]) {
BOOL alreadyDownloading = [[_downloads valueForKey:@"downloadURL"]
containsObject:aURL];
// don't check reachability; just handle the error if it fails
return isMissing == NO && isEditable && selectionCount == 1 &&
[aURL isFileURL] == NO && FALSE == alreadyDownloading;
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