mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
make sure user selects deck
This commit is contained in:
parent
2c836a7d62
commit
937f0ac250
1 changed files with 4 additions and 0 deletions
|
@ -95,6 +95,10 @@ class StudyDeck(QDialog):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def accept(self):
|
def accept(self):
|
||||||
|
row = self.form.list.currentRow()
|
||||||
|
if row < 0:
|
||||||
|
showInfo(_("Please select something."))
|
||||||
|
return
|
||||||
self.name = self.names[self.form.list.currentRow()]
|
self.name = self.names[self.form.list.currentRow()]
|
||||||
QDialog.accept(self)
|
QDialog.accept(self)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue