mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
be tolerant of conf id being set to string by mobile clients
This commit is contained in:
parent
95c40a4a56
commit
df3d2b8544
1 changed files with 2 additions and 2 deletions
|
@ -53,12 +53,12 @@ class DeckConf(QDialog):
|
|||
current = self.deck['conf']
|
||||
self.confList = self.mw.col.decks.allConf()
|
||||
self.confList.sort(key=itemgetter('name'))
|
||||
startOn = None
|
||||
startOn = 0
|
||||
self.ignoreConfChange = True
|
||||
self.form.dconf.clear()
|
||||
for idx, conf in enumerate(self.confList):
|
||||
self.form.dconf.addItem(conf['name'])
|
||||
if conf['id'] == current:
|
||||
if str(conf['id']) == str(current):
|
||||
startOn = idx
|
||||
self.ignoreConfChange = False
|
||||
self.form.dconf.setCurrentIndex(startOn)
|
||||
|
|
Loading…
Reference in a new issue