Add missing unicode() wrapper before .format() on QString

self.tr return QString, which do not support python's str.format().

Fixes QubesOS/qubes-issues#2637
This commit is contained in:
Marek Marczykowski-Górecki 2017-02-19 22:51:09 +01:00
parent 3e84b9e2ae
commit 3a011da65d
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -1452,8 +1452,9 @@ class VmManagerWindow(Ui_VmManagerWindow, QMainWindow):
thread.start()
progress = QProgressDialog(
self.tr("<b>{0}</b><br>Please wait for the updater to launch...").
format(vm.name), "", 0, 0)
unicode(
self.tr("<b>{0}</b><br>Please wait for the updater to "
"launch...")).format(vm.name), "", 0, 0)
progress.setCancelButton(None)
progress.setModal(True)
progress.show()