www

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

commit b150a482aa6f0e6971d8021916a62cd0422d61fc
parent 8304d0c67a51dd9bb2f9fcd4db4a8b04ff6cb425
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu, 10 Jul 2008 16:05:58 +0000

Fix for file launch regression on trunk -- getFile() wasn't always returning an nsILocalFile



Diffstat:
Mchrome/content/zotero/xpcom/data/item.js | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git 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");