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)

This commit is contained in:
Kovid Goyal 2017-10-21 08:17:52 +05:30
parent 7f29ced61a
commit 6e938cabbe
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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)