From d74b52c00b69ab3de2de5cc6ffce054a80277b14 Mon Sep 17 00:00:00 2001 From: donoban Date: Sun, 15 Nov 2020 19:08:22 +0100 Subject: [PATCH] flags() rewrite --- qubesmanager/qube_manager.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qubesmanager/qube_manager.py b/qubesmanager/qube_manager.py index f09fe9b..bb1d3f9 100644 --- a/qubesmanager/qube_manager.py +++ b/qubesmanager/qube_manager.py @@ -489,10 +489,10 @@ class QubesTableModel(QAbstractTableModel): if not index.isValid(): return False - col_name = self.columns_indices[index.column()] - if col_name == "Include in backups": - return Qt.ItemIsEnabled | Qt.ItemIsUserCheckable - return QAbstractTableModel.flags(self, index) + def_flags = QAbstractTableModel.flags(self, index) + if self.columns_indices[index.column()] == "Include in backups": + return def_flags | Qt.ItemIsUserCheckable + return def_flags vm_shutdown_timeout = 20000 # in msec vm_restart_check_timeout = 1000 # in msec