get deck name after adding deck
This commit is contained in:
parent
816cec4a58
commit
4e6ba4df78
@ -146,8 +146,9 @@ class StudyDeck(QDialog):
|
||||
default = self.names[self.form.list.currentRow()]
|
||||
n = getOnlyText(_("New deck name:"), default=default)
|
||||
if n:
|
||||
self.mw.col.decks.id(n)
|
||||
self.name = n
|
||||
did = self.mw.col.decks.id(n)
|
||||
# deck name may not be the same as user input. ex: ", ::
|
||||
self.name = self.mw.col.decks.name(did)
|
||||
# make sure we clean up reset hook when manually exiting
|
||||
gui_hooks.state_did_reset.remove(self.onReset)
|
||||
QDialog.accept(self)
|
||||
|
Loading…
Reference in New Issue
Block a user