mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
don't update card tags for priorities, only update priorities if changed
This commit is contained in:
parent
15105b2438
commit
f25e336ce5
1 changed files with 4 additions and 2 deletions
|
@ -243,6 +243,7 @@ class DeckProperties(QDialog):
|
||||||
*60*60 + time.timezone)
|
*60*60 + time.timezone)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
was = self.d.modified
|
||||||
self.updateField(self.d, 'collapseTime',
|
self.updateField(self.d, 'collapseTime',
|
||||||
self.dialog.collapse.isChecked() and 1 or 0)
|
self.dialog.collapse.isChecked() and 1 or 0)
|
||||||
self.updateField(self.d,
|
self.updateField(self.d,
|
||||||
|
@ -257,6 +258,7 @@ class DeckProperties(QDialog):
|
||||||
self.updateField(self.d,
|
self.updateField(self.d,
|
||||||
"suspended",
|
"suspended",
|
||||||
unicode(self.dialog.postponing.text()))
|
unicode(self.dialog.postponing.text()))
|
||||||
|
prioritiesChanged = was != self.d.modified
|
||||||
# sources
|
# sources
|
||||||
d = {}
|
d = {}
|
||||||
d.update(self.sources)
|
d.update(self.sources)
|
||||||
|
@ -289,8 +291,8 @@ insert into sources values
|
||||||
self.d.setModified()
|
self.d.setModified()
|
||||||
# mark deck dirty and close
|
# mark deck dirty and close
|
||||||
if self.origMod != self.d.modified:
|
if self.origMod != self.d.modified:
|
||||||
self.d.updateCardTags()
|
if prioritiesChanged:
|
||||||
self.d.updateAllPriorities()
|
self.d.updateAllPriorities()
|
||||||
ankiqt.mw.reset()
|
ankiqt.mw.reset()
|
||||||
self.d.setUndoEnd(n)
|
self.d.setUndoEnd(n)
|
||||||
self.d.finishProgress()
|
self.d.finishProgress()
|
||||||
|
|
Loading…
Reference in a new issue