mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
update priorities in deck props if they've changed
This commit is contained in:
parent
92482e3167
commit
efae6f64d8
1 changed files with 3 additions and 0 deletions
|
@ -242,6 +242,7 @@ class DeckProperties(QDialog):
|
||||||
*60*60 + time.timezone)
|
*60*60 + time.timezone)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
mod = 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,
|
||||||
|
@ -256,6 +257,8 @@ class DeckProperties(QDialog):
|
||||||
self.updateField(self.d,
|
self.updateField(self.d,
|
||||||
"suspended",
|
"suspended",
|
||||||
unicode(self.dialog.postponing.text()))
|
unicode(self.dialog.postponing.text()))
|
||||||
|
if self.d.modified != mod:
|
||||||
|
self.d.updateAllPriorities()
|
||||||
# sources
|
# sources
|
||||||
d = {}
|
d = {}
|
||||||
d.update(self.sources)
|
d.update(self.sources)
|
||||||
|
|
Loading…
Reference in a new issue