call app.processEvents() before doing VM shutdown to allow for smooth window repaint
This commit is contained in:
parent
b2b9dac55b
commit
8908a9f123
@ -620,6 +620,8 @@ class VmManagerWindow(QMainWindow):
|
||||
"<small>This will shutdown all the running applications within this VM.</small>".format(vm.name),
|
||||
QMessageBox.Yes | QMessageBox.Cancel)
|
||||
|
||||
app.processEvents()
|
||||
|
||||
if reply == QMessageBox.Yes:
|
||||
try:
|
||||
subprocess.check_call (["/usr/sbin/xm", "shutdown", vm.name])
|
||||
|
Loading…
Reference in New Issue
Block a user