30 lines
1.4 KiB
Text
30 lines
1.4 KiB
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/devmgr5.py
|
|
--- ui5/devmgr5.py.orig
|
|
+++ ui5/devmgr5.py
|
|
@@ -144,8 +144,7 @@ class PluginInstall(QObject):
|
|
install_plugin = QMessageBox.warning(self.parent,
|
|
self.parent.windowTitle(),
|
|
self.__tr("<b>The HPLIP plugin is already installed.</b><p>Do you want to continue and re-install it?"),
|
|
- QMessageBox.Yes,
|
|
- QMessageBox.No,
|
|
+ QMessageBox.Yes | QMessageBox.No,
|
|
QMessageBox.NoButton) == QMessageBox.Yes
|
|
|
|
if install_plugin:
|
|
@@ -154,8 +153,7 @@ class PluginInstall(QObject):
|
|
QMessageBox.critical(self.parent,
|
|
self.parent.windowTitle(),
|
|
self.__tr("<b>Unable to find an appropriate su/sudo utility to run hp-plugin.</b><p>Install kdesu, gnomesu, or gksu.</p>"),
|
|
- QMessageBox.Ok,
|
|
- QMessageBox.NoButton,
|
|
+ QMessageBox.Ok | QMessageBox.NoButton,
|
|
QMessageBox.NoButton)
|
|
|
|
|