fix lock during sync

This commit is contained in:
antelle 2016-03-19 14:17:52 +03:00
parent 340ae933bf
commit b19dd8d594
1 changed files with 3 additions and 0 deletions

View File

@ -335,6 +335,9 @@ var FileModel = Backbone.Model.extend({
syncing: false,
syncError: error
});
if (!this.get('open')) {
return;
}
this.setOpenFile({ passwordLength: this.get('passwordLength') });
this.forEachEntry({}, function(entry) {
entry.unsaved = false;