Skip to content

Commit

Permalink
Adjust for PyQt4 - use QtGui instead of QtWidgets
Browse files Browse the repository at this point in the history
Fixes 137ae8b "Handle deleting in VM Settings without silent fails"
Fixes 376550b "Added better exception handling on Backup Cancel"
  • Loading branch information
marmarek committed Jan 29, 2020
1 parent 137ae8b commit 0414095
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion qubesmanager/backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)))

Expand Down
2 changes: 1 addition & 1 deletion qubesmanager/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0414095

Please sign in to comment.