From 0414095149bea91ca34a00413d332fbd25853bd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Wed, 29 Jan 2020 06:43:32 +0100 Subject: [PATCH] Adjust for PyQt4 - use QtGui instead of QtWidgets Fixes 137ae8b "Handle deleting in VM Settings without silent fails" Fixes 376550b "Added better exception handling on Backup Cancel" --- qubesmanager/backup.py | 2 +- qubesmanager/settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qubesmanager/backup.py b/qubesmanager/backup.py index 71e3eee2..7a1e9ce6 100644 --- a/qubesmanager/backup.py +++ b/qubesmanager/backup.py @@ -387,7 +387,7 @@ def reject(self): 'dom0', 'admin.backup.Cancel', backup_utils.get_profile_name(True)) except exc.QubesException as ex: - QtWidgets.QMessageBox.warning( + QtGui.QMessageBox.warning( self, self.tr("Error cancelling backup!"), self.tr("ERROR: {}").format(str(ex))) diff --git a/qubesmanager/settings.py b/qubesmanager/settings.py index 3618334e..6fe02c6b 100644 --- a/qubesmanager/settings.py +++ b/qubesmanager/settings.py @@ -658,7 +658,7 @@ def remove_vm(self): thread.finished.connect(self.clear_threads) self.threads_list.append(thread) - self.progress = QtWidgets.QProgressDialog( + self.progress = QtGui.QProgressDialog( self.tr("Deleting Qube..."), "", 0, 0) self.progress.setCancelButton(None) self.progress.setModal(True)