mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
handle conf group with string id
https://anki.tenderapp.com/discussions/ankidesktop/29112-cant-delete-a-deck
This commit is contained in:
parent
be067dda56
commit
290fd34699
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ class DeckConf(QDialog):
|
|||
self.loadConfs()
|
||||
|
||||
def remGroup(self):
|
||||
if self.conf['id'] == 1:
|
||||
if int(self.conf['id']) == 1:
|
||||
showInfo(_("The default configuration can't be removed."), self)
|
||||
else:
|
||||
self.mw.col.decks.remConf(self.conf['id'])
|
||||
|
|
Loading…
Reference in a new issue