From 95a73bbc9bd65602a0f9411469ab511bc80a01d0 Mon Sep 17 00:00:00 2001 From: Till Kamppeter 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("The HPLIP plugin is already installed.

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("Unable to find an appropriate su/sudo utility to run hp-plugin.

Install kdesu, gnomesu, or gksu.

"), - QMessageBox.Ok, - QMessageBox.NoButton, + QMessageBox.Ok | QMessageBox.NoButton, QMessageBox.NoButton)