Avoid lag on loading dialog

This commit is contained in:
donoban 2018-07-12 01:21:04 +02:00
parent 632f23c298
commit 14f58fe8c1
No known key found for this signature in database
GPG Key ID: 141310D8E3ED08A5

View File

@ -546,8 +546,7 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow):
vm_row = VmRowInTable(vm, row_no, self.table)
vms_in_table[vm.qid] = vm_row
row_no += 1
if row_no % 5 == 0:
self.qt_app.processEvents()
self.qt_app.processEvents()
self.vms_list = vms_list
self.vms_in_table = vms_in_table