mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
7f29ced61a
commit
6e938cabbe
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user