Revert "Removed progress wait when updating template"

This reverts commit 9633f6e9c6.
This commit is contained in:
donoban 2018-05-09 15:50:39 +02:00
parent ce07b9dcb1
commit e2fccf592a
No known key found for this signature in database
GPG Key ID: 141310D8E3ED08A5

View File

@ -976,6 +976,20 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow):
thread.daemon = True
thread.start()
progress = QtGui.QProgressDialog(
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()
while not t_monitor.is_finished():
self.qt_app.processEvents()
time.sleep(0.2)
progress.hide()
if vm.qid != 0:
if not t_monitor.success:
QtGui.QMessageBox.warning(