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:
parent
3e84b9e2ae
commit
3a011da65d
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user