mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
Merge pull request #839 from hgiesel/fix_field_hook
Fix fields_did_rename_field gui hook
This commit is contained in:
commit
715e18d587
1 changed files with 2 additions and 1 deletions
|
@ -100,9 +100,10 @@ class FieldDialog(QDialog):
|
|||
if not name:
|
||||
return
|
||||
|
||||
old_name = f["name"]
|
||||
self.change_tracker.mark_basic()
|
||||
self.mm.rename_field(self.model, f, name)
|
||||
gui_hooks.fields_did_rename_field(self, f, f["name"])
|
||||
gui_hooks.fields_did_rename_field(self, f, old_name)
|
||||
|
||||
self.saveField()
|
||||
self.fillFields()
|
||||
|
|
Loading…
Reference in a new issue