mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04: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:
|
||||
return
|
||||
self.dialog.sourcesTable.removeRow(r)
|
||||
id = self.sources[r][0]
|
||||
self.sourcesToRemove.append(id)
|
||||
try:
|
||||
id = self.sources[r][0]
|
||||
self.sourcesToRemove.append(id)
|
||||
except IndexError:
|
||||
pass
|
||||
|
||||
def reject(self):
|
||||
n = _("Deck Properties")
|
||||
|
|
Loading…
Reference in a new issue