handle conf group with string id

https://anki.tenderapp.com/discussions/ankidesktop/29112-cant-delete-a-deck
This commit is contained in:
Damien Elmes 2018-08-09 15:03:12 +10:00
parent be067dda56
commit 290fd34699

View file

@ -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'])