From 4155a8f562177ae20c2f1a5cf62fee9aa660a16a Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 26 Feb 2009 17:02:45 +0900 Subject: [PATCH] make sure to update card tags if deck props modified --- ankiqt/ui/deckproperties.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ankiqt/ui/deckproperties.py b/ankiqt/ui/deckproperties.py index dc3e875b9..738b26e8a 100644 --- a/ankiqt/ui/deckproperties.py +++ b/ankiqt/ui/deckproperties.py @@ -243,7 +243,6 @@ class DeckProperties(QDialog): *60*60 + time.timezone) except: pass - mod = self.d.modified self.updateField(self.d, 'collapseTime', self.dialog.collapse.isChecked() and 1 or 0) self.updateField(self.d, @@ -258,8 +257,6 @@ class DeckProperties(QDialog): self.updateField(self.d, "suspended", unicode(self.dialog.postponing.text())) - if self.d.modified != mod: - self.d.updateAllPriorities() # sources d = {} d.update(self.sources) @@ -292,6 +289,8 @@ insert into sources values self.d.setModified() # mark deck dirty and close if self.origMod != self.d.modified: + self.d.updateCardTags() + self.d.updateAllPriorities() ankiqt.mw.reset() self.d.setUndoEnd(n) self.d.finishProgress()