mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #2017709 [6.16.1*: alternate_column_names don't show in MDE](https://bugs.launchpad.net/calibre/+bug/2017709)
This commit is contained in:
parent
d1d4f06ca2
commit
646982e3d4
@ -771,7 +771,10 @@ class SeriesIndexEdit(make_undoable(QDoubleSpinBox), ToMetadataMixin):
|
||||
class BuddyLabel(QLabel): # {{{
|
||||
|
||||
def __init__(self, buddy):
|
||||
QLabel.__init__(self, buddy.LABEL)
|
||||
sval = tweaks['alternate_column_names'].get(getattr(buddy, 'FIELD_NAME', None))
|
||||
if sval:
|
||||
sval = '&' + sval
|
||||
QLabel.__init__(self, sval or buddy.LABEL)
|
||||
self.setBuddy(buddy)
|
||||
self.setAlignment(Qt.AlignmentFlag.AlignRight|Qt.AlignmentFlag.AlignVCenter)
|
||||
# }}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user