mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 14:17:13 -05:00
fix error removing a source in deck props
This commit is contained in:
parent
97784e220d
commit
bbb4b87d71
1 changed files with 5 additions and 2 deletions
|
|
@ -201,8 +201,11 @@ class DeckProperties(QDialog):
|
||||||
if r == -1:
|
if r == -1:
|
||||||
return
|
return
|
||||||
self.dialog.sourcesTable.removeRow(r)
|
self.dialog.sourcesTable.removeRow(r)
|
||||||
|
try:
|
||||||
id = self.sources[r][0]
|
id = self.sources[r][0]
|
||||||
self.sourcesToRemove.append(id)
|
self.sourcesToRemove.append(id)
|
||||||
|
except IndexError:
|
||||||
|
pass
|
||||||
|
|
||||||
def reject(self):
|
def reject(self):
|
||||||
n = _("Deck Properties")
|
n = _("Deck Properties")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue