diff --git a/ankiqt/ui/cardlist.py b/ankiqt/ui/cardlist.py index 2e1071f2d..70b9ffcdd 100644 --- a/ankiqt/ui/cardlist.py +++ b/ankiqt/ui/cardlist.py @@ -418,6 +418,7 @@ class EditDeck(QMainWindow): saveGeom(self, "editor") self.hide() ui.dialogs.close("CardList") + self.parent.moveToState("auto") return True def closeEvent(self, evt): diff --git a/ankiqt/ui/facteditor.py b/ankiqt/ui/facteditor.py index efb0a53bc..798d0bca0 100644 --- a/ankiqt/ui/facteditor.py +++ b/ankiqt/ui/facteditor.py @@ -397,8 +397,10 @@ class FactEditor(object): self.fact.tags = canonifyTags(unicode(self.tags.text())) if self.onChange: self.onChange() + self.deck.s.flush() + self.deck.updatePriorities([c.id for c in self.fact.cards]) self.fact.setModified(textChanged=True) - self.deck.setModified() + self.deck.flushMod() def focusField(self, fieldName): self.fields[fieldName][1].setFocus()