mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Fix library names with & in them not display correctly in the user account edit dialog
This commit is contained in:
parent
acc76f923a
commit
737b5d6054
@ -389,7 +389,7 @@ class Library(QWidget):
|
|||||||
self.border = b = QFrame(self)
|
self.border = b = QFrame(self)
|
||||||
b.setFrameStyle(b.HLine)
|
b.setFrameStyle(b.HLine)
|
||||||
l.addWidget(b)
|
l.addWidget(b)
|
||||||
self.cw = cw = QCheckBox(name)
|
self.cw = cw = QCheckBox(name.replace('&', '&&'))
|
||||||
cw.setStyleSheet('QCheckBox { font-weight: bold }')
|
cw.setStyleSheet('QCheckBox { font-weight: bold }')
|
||||||
cw.setChecked(is_checked)
|
cw.setChecked(is_checked)
|
||||||
cw.stateChanged.connect(self.state_changed)
|
cw.stateChanged.connect(self.state_changed)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user