Fix #1860506 [[Enhancement] Move Change password button](https://bugs.launchpad.net/calibre/+bug/1860506)

This commit is contained in:
Kovid Goyal 2020-01-22 10:50:29 +05:30
parent 580a685633
commit 327b6e071b
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -722,9 +722,6 @@ class User(QWidget):
l.setFieldGrowthPolicy(QFormLayout.AllNonFixedFieldsGrow)
self.username_label = la = QLabel('')
l.addWidget(la)
self.cpb = b = QPushButton(_('Change &password'))
l.addWidget(b)
b.clicked.connect(self.change_password)
self.ro_text = _('Allow {} to make &changes (i.e. grant write access)')
self.rw = rw = QCheckBox(self)
rw.setToolTip(
@ -737,6 +734,9 @@ class User(QWidget):
l.addWidget(rw)
self.access_label = la = QLabel(self)
l.addWidget(la), la.setWordWrap(True)
self.cpb = b = QPushButton(_('Change &password'))
l.addWidget(b)
b.clicked.connect(self.change_password)
self.restrict_button = b = QPushButton(self)
b.clicked.connect(self.change_restriction)
l.addWidget(b)