mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -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
|
||||
|
||||
def accept(self):
|
||||
row = self.form.list.currentRow()
|
||||
if row < 0:
|
||||
showInfo(_("Please select something."))
|
||||
return
|
||||
self.name = self.names[self.form.list.currentRow()]
|
||||
QDialog.accept(self)
|
||||
|
||||
|
|
Loading…
Reference in a new issue