Fix #1914912 [[Enhancement] Go back to Preferences overview](https://bugs.launchpad.net/calibre/+bug/1914912)

This commit is contained in:
Kovid Goyal 2021-02-07 19:36:15 +05:30
parent 3b4bd3232a
commit 973bd004d8
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -241,7 +241,6 @@ class Preferences(QDialog):
QDialogButtonBox.StandardButton.Cancel | QDialogButtonBox.StandardButton.RestoreDefaults
)
self.bb.button(QDialogButtonBox.StandardButton.Apply).clicked.connect(self.accept)
self.bb.button(QDialogButtonBox.StandardButton.Cancel).clicked.connect(self.reject)
self.bb.button(QDialogButtonBox.StandardButton.RestoreDefaults).setIcon(QIcon(I('clear_left.png')))
self.bb.button(QDialogButtonBox.StandardButton.RestoreDefaults).clicked.connect(self.restore_defaults)
self.wizard_button = self.bb.addButton(_('Run Welcome &wizard'), QDialogButtonBox.ButtonRole.ActionRole)