Since __lt__ methods are safe, is not needed to stop and reenable sorting.

It causes a short freeze of the main window when reenabling, so better
removing it.
This commit is contained in:
donoban 2018-05-31 00:09:34 +02:00
parent ae23443608
commit ac92bb5fdf
No known key found for this signature in database
GPG Key ID: 141310D8E3ED08A5

View File

@ -403,8 +403,6 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow):
self.qubes_app.domains.clear_cache()
qid = int(domain.split('/')[-1])
self.table.setSortingEnabled(False)
row_no = self.table.rowCount()
self.table.setRowCount(row_no + 1)
@ -413,7 +411,6 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow):
if vm.qid == qid:
vm_row = VmRowInTable(vm, row_no, self.table)
self.vms_in_table[vm.qid] = vm_row
self.table.setSortingEnabled(True)
return
# Never should reach here