call app.processEvents() before doing VM shutdown to allow for smooth window repaint

This commit is contained in:
Joanna Rutkowska 2010-05-12 16:44:48 +02:00
parent b2b9dac55b
commit 8908a9f123

View File

@ -620,6 +620,8 @@ class VmManagerWindow(QMainWindow):
"<small>This will shutdown all the running applications within this VM.</small>".format(vm.name), "<small>This will shutdown all the running applications within this VM.</small>".format(vm.name),
QMessageBox.Yes | QMessageBox.Cancel) QMessageBox.Yes | QMessageBox.Cancel)
app.processEvents()
if reply == QMessageBox.Yes: if reply == QMessageBox.Yes:
try: try:
subprocess.check_call (["/usr/sbin/xm", "shutdown", vm.name]) subprocess.check_call (["/usr/sbin/xm", "shutdown", vm.name])