From 8a5e17610c7b99fd7eacebdec7b76053b2833e5e Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 12 Feb 2010 09:17:09 +0000 Subject: [PATCH] If mod time doesn't match but hash does, update file mod time to match synced time, since otherwise Zotero will compute the hash each time --- chrome/content/zotero/xpcom/storage.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/storage.js b/chrome/content/zotero/xpcom/storage.js index d48e1c86f..a862af4a2 100644 --- a/chrome/content/zotero/xpcom/storage.js +++ b/chrome/content/zotero/xpcom/storage.js @@ -528,7 +528,8 @@ Zotero.Sync.Storage = new function () { var fileHash = item.attachmentHash; if (attachmentData[item.id].hash && attachmentData[item.id].hash == fileHash) { Zotero.debug("Mod time didn't match (" + fmtime + "!=" + mtime + ") " - + "but hash did for " + file.leafName + " -- ignoring"); + + "but hash did for " + file.leafName + " -- updating file mod time"); + file.lastModifiedTime = attachmentData[item.id].mtime; continue; }