From 06e9e862010dbe56850b405676b652cc4a217cd2 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 10 Jul 2008 16:05:58 +0000 Subject: [PATCH] Fix for file launch regression on trunk -- getFile() wasn't always returning an nsILocalFile --- chrome/content/zotero/xpcom/data/item.js | 1 + 1 file changed, 1 insertion(+) diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index f9b1f9c92..784cd0d6b 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -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");