mirror of
https://github.com/ankitects/anki.git
synced 2025-11-11 23:27:12 -05:00
don't rename if note type rename cancelled
This commit is contained in:
parent
c6adf1dda8
commit
cb8100c641
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ class Models(QDialog):
|
|||
|
||||
def onRename(self):
|
||||
txt = getText(_("New name:"), default=self.model['name'])
|
||||
if txt[0]:
|
||||
if txt[1] and txt[0]:
|
||||
self.model['name'] = txt[0]
|
||||
self.mm.save(self.model)
|
||||
self.updateModelsList()
|
||||
|
|
|
|||
Loading…
Reference in a new issue