www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 002dd66e0366ced5a1690e4ec87aa74a848eba32
parent a1ce85decb82824d7c351f1b0656bd5153de2053
Author: Dan Stillman <dstillman@zotero.org>
Date:   Wed, 23 Mar 2016 01:52:59 -0400

Restore proper error for Show File on missing file

Diffstat:
Mchrome/content/zotero/zoteroPane.js | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js @@ -3940,8 +3940,9 @@ var ZoteroPane = new function() this.showAttachmentInFilesystem = Zotero.Promise.coroutine(function* (itemID, noLocateOnMissing) { var attachment = yield Zotero.Items.getAsync(itemID) if (attachment.attachmentLinkMode != Zotero.Attachments.LINK_MODE_LINKED_URL) { - var file = attachment.getFile(); - if (file) { + var path = yield attachment.getFilePathAsync(); + if (path) { + let file = Zotero.File.pathToFile(path); try { file.reveal(); }