Fix a spurious error when cancelling addition of a tag to the insert tag menu

This commit is contained in:
Kovid Goyal 2022-01-20 14:17:42 +05:30
parent e303e85d2a
commit 73ffadea06
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -278,9 +278,9 @@ class Editor(QMainWindow):
'Enter the name of the tag')) 'Enter the name of the tag'))
if ok: if ok:
mru = tprefs['insert_tag_mru'] mru = tprefs['insert_tag_mru']
mru.insert(0, name) mru.insert(0, name)
tprefs['insert_tag_mru'] = mru tprefs['insert_tag_mru'] = mru
self._build_insert_tag_button_menu() self._build_insert_tag_button_menu()
def remove_insert_tag(self, name): def remove_insert_tag(self, name):
mru = tprefs['insert_tag_mru'] mru = tprefs['insert_tag_mru']