21 lines
967 B
Text
21 lines
967 B
Text
|
From 95a73bbc9bd65602a0f9411469ab511bc80a01d0 Mon Sep 17 00:00:00 2001
|
||
|
From: Till Kamppeter <till.kamppeter@gmail.com>
|
||
|
Date: Wed, 3 Oct 2018 15:13:00 +0200
|
||
|
Subject: Call QMessageBox constructors of PyQT5 with the correct parameters
|
||
|
Bug-Debian: https://bugs.debian.org/912768
|
||
|
Bug-Ubuntu: https://bugs.launchpad.net/bugs/1745383
|
||
|
|
||
|
Index: ui5/nodevicesdialog.py
|
||
|
--- ui5/nodevicesdialog.py.orig
|
||
|
+++ ui5/nodevicesdialog.py
|
||
|
@@ -64,8 +64,7 @@ class NoDevicesDialog(QDialog, Ui_NoDevicesDialog_base
|
||
|
QMessageBox.critical(self,
|
||
|
self.windowTitle(),
|
||
|
self.__tr("<b>An error occurred.</b><p>Please re-start the Device Manager and try again."),
|
||
|
- QMessageBox.Ok,
|
||
|
- QMessageBox.NoButton,
|
||
|
+ QMessageBox.Ok | QMessageBox.NoButton,
|
||
|
QMessageBox.NoButton)
|
||
|
|
||
|
|