Revert "Removed progress wait when updating template"
This reverts commit 9633f6e9c6
.
This commit is contained in:
parent
ce07b9dcb1
commit
e2fccf592a
@ -976,6 +976,20 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow):
|
|||||||
thread.daemon = True
|
thread.daemon = True
|
||||||
thread.start()
|
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 vm.qid != 0:
|
||||||
if not t_monitor.success:
|
if not t_monitor.success:
|
||||||
QtGui.QMessageBox.warning(
|
QtGui.QMessageBox.warning(
|
||||||
|
Loading…
Reference in New Issue
Block a user