fix #780: clear template group on deletion

This commit is contained in:
antelle 2017-11-26 18:58:37 +01:00
parent 7d13b49093
commit b3cd56b9c4
1 changed files with 3 additions and 0 deletions

View File

@ -255,6 +255,9 @@ const GroupModel = MenuItemModel.extend({
moveToTrash: function() {
this.file.setModified();
this.file.db.remove(this.group);
if (this.group.uuid.equals(this.file.db.meta.entryTemplatesGroup)) {
this.file.db.meta.entryTemplatesGroup = undefined;
}
this.file.reload();
},