From 4d103562bde6981b1e44e1225dd7ed89429cb7d9 Mon Sep 17 00:00:00 2001 From: donoban Date: Thu, 31 May 2018 00:27:37 +0200 Subject: [PATCH] Revert "Since __lt__ methods are safe, is not needed to stop and reenable sorting." This reverts commit ac92bb5fdfa55db894c84e0f04967b28ff719af5. --- qubesmanager/qube_manager.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qubesmanager/qube_manager.py b/qubesmanager/qube_manager.py index 92f9cf6..b12823e 100644 --- a/qubesmanager/qube_manager.py +++ b/qubesmanager/qube_manager.py @@ -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