Indent fix

This commit is contained in:
Agnieszka Kostrzewa 2012-04-01 19:50:55 +02:00
parent f48e948330
commit 464b73a23f

View File

@ -166,21 +166,21 @@ class BackupVMsWindow(Ui_Backup, QWizard):
for vm in vms: for vm in vms:
self.shutdown_vm_func(vm) self.shutdown_vm_func(vm)
progress = QProgressDialog ("Shutting down VMs <b>{0}</b>...".format(', '.join(names)), "", 0, 0) progress = QProgressDialog ("Shutting down VMs <b>{0}</b>...".format(', '.join(names)), "", 0, 0)
progress.setModal(True) progress.setModal(True)
progress.show() progress.show()
wait_time = 15.0 wait_time = 15.0
wait_for = wait_time wait_for = wait_time
while self.check_running() and wait_for > 0: while self.check_running() and wait_for > 0:
self.app.processEvents() self.app.processEvents()
time.sleep (0.1) time.sleep (0.1)
wait_for -= 0.1 wait_for -= 0.1
progress.hide() progress.hide()
if self.check_running(): if self.check_running():
QMessageBox.information(None, "Strange", "Could not power down the VMs in {0} seconds...".format(wait_time)) QMessageBox.information(None, "Strange", "Could not power down the VMs in {0} seconds...".format(wait_time))