Fix a regression in the previous release that broke changing sections in the convert single book dialog after changing the input or output formats. Fixes #1924767 [Convert dialog navigation stops woorking](https://bugs.launchpad.net/calibre/+bug/1924767)

This commit is contained in:
Kovid Goyal 2021-04-16 20:20:35 +05:30
parent 51d07cef5b
commit 7cbbff57ca
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -84,7 +84,6 @@ class Config(QDialog):
self.input_formats.currentIndexChanged[native_string_type].connect(self.setup_pipeline)
self.output_formats.currentIndexChanged[native_string_type].connect(self.setup_pipeline)
self.groups.setSpacing(5)
self.groups.selectionModel().currentChanged.connect(self.current_group_changed)
self.groups.entered[(QModelIndex)].connect(self.show_group_help)
rb = self.buttonBox.button(QDialogButtonBox.StandardButton.RestoreDefaults)
rb.setText(_('Restore &defaults'))
@ -249,6 +248,7 @@ class Config(QDialog):
idx = oidx if -1 < oidx < self._groups_model.rowCount() else 0
self.groups.setCurrentIndex(self._groups_model.index(idx))
self.show_pane(idx)
self.groups.selectionModel().currentChanged.connect(self.current_group_changed)
try:
shutil.rmtree(self.plumber.archive_input_tdir, ignore_errors=True)
except Exception: