From 409bcd27fcc219f1db9b8a914221e19976b54431 Mon Sep 17 00:00:00 2001 From: donoban Date: Sat, 14 Nov 2020 16:12:11 +0100 Subject: [PATCH] Fix empty lines --- qubesmanager/qube_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubesmanager/qube_manager.py b/qubesmanager/qube_manager.py index 4e71d3e..f09fe9b 100644 --- a/qubesmanager/qube_manager.py +++ b/qubesmanager/qube_manager.py @@ -475,6 +475,7 @@ class QubesTableModel(QAbstractTableModel): def setData(self, index, value, role=Qt.EditRole): if not index.isValid(): return False + if role == Qt.CheckStateRole: col_name = self.columns_indices[index.column()] if col_name == "Include in backups": @@ -491,7 +492,6 @@ class QubesTableModel(QAbstractTableModel): col_name = self.columns_indices[index.column()] if col_name == "Include in backups": return Qt.ItemIsEnabled | Qt.ItemIsUserCheckable - return QAbstractTableModel.flags(self, index) vm_shutdown_timeout = 20000 # in msec