Fix library names with & in them not display correctly in the user account edit dialog

This commit is contained in:
Kovid Goyal 2017-06-20 17:20:31 +05:30
parent acc76f923a
commit 737b5d6054
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

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