diff --git a/src/calibre/gui2/convert/xpath_wizard.py b/src/calibre/gui2/convert/xpath_wizard.py index f15e234070..1c21982dde 100644 --- a/src/calibre/gui2/convert/xpath_wizard.py +++ b/src/calibre/gui2/convert/xpath_wizard.py @@ -60,7 +60,7 @@ def __init__(self, parent=None): self.buttonBox.accepted.connect(self.accept) self.buttonBox.rejected.connect(self.reject) - self.setModal(Qt.WindowModality.WindowModal) + self.setWindowModality(Qt.WindowModality.WindowModal) @property def xpath(self): diff --git a/src/calibre/gui2/device.py b/src/calibre/gui2/device.py index b0f82747b6..1d2e2ffc5d 100644 --- a/src/calibre/gui2/device.py +++ b/src/calibre/gui2/device.py @@ -895,7 +895,7 @@ def __init__(self, *args, **kwargs): def init_device_mixin(self): self.device_error_dialog = error_dialog(self, _('Error'), _('Error communicating with device'), ' ') - self.device_error_dialog.setModal(Qt.WindowModality.NonModal) + self.device_error_dialog.setModal(False) self.device_manager = DeviceManager(FunctionDispatcher(self.device_detected), self.job_manager, Dispatcher(self.status_bar.show_message), Dispatcher(self.show_open_feedback), diff --git a/src/calibre/gui2/main.py b/src/calibre/gui2/main.py index 06756a6617..367ca93feb 100644 --- a/src/calibre/gui2/main.py +++ b/src/calibre/gui2/main.py @@ -278,6 +278,7 @@ def choose_dir(self, initial_dir): default_dir=initial_dir) def show_error(self, title, msg, det_msg=''): + print(det_msg, file=sys.stderr) self.hide_splash_screen() with self.app: error_dialog(self.splash_screen, title, msg, det_msg=det_msg, show=True)