mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
646982e3d4
commit
b319a1ceaa
@ -773,7 +773,7 @@ class BuddyLabel(QLabel): # {{{
|
||||
def __init__(self, buddy):
|
||||
sval = tweaks['alternate_column_names'].get(getattr(buddy, 'FIELD_NAME', None))
|
||||
if sval:
|
||||
sval = '&' + sval
|
||||
sval = '&' + sval.replace('&', '&&')
|
||||
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