mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-16 00:45:57 +01:00
Call setModal correctly
This commit is contained in:
parent
43f846cb7a
commit
fb7d2a3dbd
3 changed files with 3 additions and 2 deletions
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue