From 880a45eb13e1c7d59132206541bfc35c79debcab Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 4 Dec 2008 01:09:54 +0900 Subject: [PATCH] update title after undo, set fact=none after check not before --- ankiqt/ui/cardlist.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ankiqt/ui/cardlist.py b/ankiqt/ui/cardlist.py index 2b03612f8..23647c050 100644 --- a/ankiqt/ui/cardlist.py +++ b/ankiqt/ui/cardlist.py @@ -392,12 +392,12 @@ class EditDeck(QMainWindow): def onClose(self): self.editor.saveFieldsNow() - self.editor.setFact(None) if not self.factValid: ui.utils.showInfo(_( "Some fields are missing or not unique."), parent=self, help="AddItems#AddError") return + self.editor.setFact(None) saveGeom(self, "editor") saveSplitter(self.dialog.splitter, "editor") self.hide() @@ -562,10 +562,12 @@ where id in (%s)""" % ",".join([ def onUndo(self): self.deck.undo() + self.updateFilterLabel() self.updateSearch() def onRedo(self): self.deck.redo() + self.updateFilterLabel() self.updateSearch() class AddCardChooser(QDialog):