Bug 557503 - bookmark restore from backup and server-wins interact badly [r=mconnor]

Don't resetLastSync as that will make local changes look old and instead mark each as changed now that addChangedID doesn't jsonSave on each call.
This commit is contained in:
Edward Lee 2010-04-06 11:59:50 -07:00
parent c79c303ba8
commit 9dea7f5571

View File

@ -108,9 +108,12 @@ BookmarksEngine.prototype = {
}, this);
Observers.add("bookmarks-restore-success", function() {
this._log.debug("Triggering fresh start on successful import");
this.resetLastSync();
this._log.debug("Tracking all items on successful import");
this._tracker.ignoreAll = false;
// Mark all the items as changed so they get uploaded
for (let id in this._store.getAllIDs())
this._tracker.addChangedID(id);
}, this);
Observers.add("bookmarks-restore-failed", function() {