From 7cbbff57ca4a13a634e40ab67436dc3303634991 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 16 Apr 2021 20:20:35 +0530 Subject: [PATCH] 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) --- src/calibre/gui2/convert/single.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/convert/single.py b/src/calibre/gui2/convert/single.py index df31e697e3..641a90d688 100644 --- a/src/calibre/gui2/convert/single.py +++ b/src/calibre/gui2/convert/single.py @@ -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: