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

This commit is contained in:
Dan Stillman 2008-07-10 16:05:58 +00:00
parent 8304d0c67a
commit b150a482aa

View file

@ -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");