From 6e938cabbeaf358ccbc03b4db74fc1ed46fbadff Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 21 Oct 2017 08:17:52 +0530 Subject: [PATCH] Fix #1725517 [would like to see the column name in the tag add/remove window. If there are columns with similar tags that need editing it helps to see the name of the column in order to remember or be sure which column is being worked on.](https://bugs.launchpad.net/calibre/+bug/1725517) --- src/calibre/gui2/dialogs/tag_editor.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/dialogs/tag_editor.py b/src/calibre/gui2/dialogs/tag_editor.py index 88f3ce0da4..5b9815d6eb 100644 --- a/src/calibre/gui2/dialogs/tag_editor.py +++ b/src/calibre/gui2/dialogs/tag_editor.py @@ -24,9 +24,11 @@ class TagEditor(QDialog, Ui_TagEditor): if key: # Assume that if given a key then it is a custom column try: - self.is_names = db.field_metadata[key]['display'].get('is_names', False) + fm = db.field_metadata[key] + self.is_names = fm['display'].get('is_names', False) if self.is_names: self.sep = '&' + self.setWindowTitle(_('Edit %s') % fm['name']) except Exception: pass key = db.field_metadata.key_to_label(key)