Fix for file launch regression on trunk -- getFile() wasn't always returning an nsILocalFile
This commit is contained in:
parent
8304d0c67a
commit
b150a482aa
1 changed files with 1 additions and 0 deletions
|
@ -2141,6 +2141,7 @@ Zotero.Item.prototype.getFile = function(row, skipExistsCheck) {
|
|||
// Strip "storage:"
|
||||
var path = row.path.substr(8);
|
||||
var file = Zotero.Attachments.getStorageDirectory(this.id);
|
||||
file.QueryInterface(Components.interfaces.nsILocalFile);
|
||||
file.append(path);
|
||||
if (!file.exists()) {
|
||||
Zotero.debug("Attachment file '" + path + "' not found");
|
||||
|
|
Loading…
Reference in a new issue