From c6663576257a1f2373d2d68a5b622084de2090ad Mon Sep 17 00:00:00 2001 From: donoban Date: Sat, 12 Dec 2020 14:22:15 +0100 Subject: [PATCH] Replace '2' with Qt.Checked --- qubesmanager/qube_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qubesmanager/qube_manager.py b/qubesmanager/qube_manager.py index 967fcae..8d7ec92 100644 --- a/qubesmanager/qube_manager.py +++ b/qubesmanager/qube_manager.py @@ -480,8 +480,8 @@ class QubesTableModel(QAbstractTableModel): col_name = self.columns_indices[index.column()] if col_name == "Backup": vm = self.qubes_cache.get_vm(index.row()) - vm.vm.include_in_backups = (value == 2) - vm.inc_backup = (value == 2) + vm.vm.include_in_backups = (value == Qt.Checked) + vm.inc_backup = (value == Qt.Checked) return True return False