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()
|
thread.start()
|
||||||
|
|
||||||
progress = QProgressDialog(
|
progress = QProgressDialog(
|
||||||
self.tr("<b>{0}</b><br>Please wait for the updater to launch...").
|
unicode(
|
||||||
format(vm.name), "", 0, 0)
|
self.tr("<b>{0}</b><br>Please wait for the updater to "
|
||||||
|
"launch...")).format(vm.name), "", 0, 0)
|
||||||
progress.setCancelButton(None)
|
progress.setCancelButton(None)
|
||||||
progress.setModal(True)
|
progress.setModal(True)
|
||||||
progress.show()
|
progress.show()
|
||||||
|
Loading…
Reference in New Issue
Block a user