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

This reverts commit ac92bb5fdf.
This commit is contained in:
donoban 2018-05-31 00:27:37 +02:00
parent 47e83f2039
commit 4d103562bd
No known key found for this signature in database
GPG Key ID: 141310D8E3ED08A5

View File

@ -404,6 +404,8 @@ 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)
@ -412,6 +414,7 @@ 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