commit 8a5e17610c7b99fd7eacebdec7b76053b2833e5e
parent 4e9f05a183f0c9cf2989d95d6399eb5b4fe5d74a
Author: Dan Stillman <dstillman@zotero.org>
Date: Fri, 12 Feb 2010 09:17:09 +0000
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
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git 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;
}