mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 09:16:38 -04:00
Strip name of added deck
There is currently what I believe to be a bug: create a deck " ". The creation is accepted and the name is renamed to "blank". Instead, I believe you'd want to strip the deck name before testing its emptiness.
This commit is contained in:
parent
b51f03085e
commit
3eabe4c3f7
1 changed files with 1 additions and 0 deletions
|
@ -145,6 +145,7 @@ class StudyDeck(QDialog):
|
|||
else:
|
||||
default = self.names[self.form.list.currentRow()]
|
||||
n = getOnlyText(_("New deck name:"), default=default)
|
||||
n = n.strip()
|
||||
if n:
|
||||
did = self.mw.col.decks.id(n)
|
||||
# deck name may not be the same as user input. ex: ", ::
|
||||
|
|
Loading…
Reference in a new issue