Replace '2' with Qt.Checked

This commit is contained in:
donoban 2020-12-12 14:22:15 +01:00
parent 1812989ecd
commit c666357625
No known key found for this signature in database
GPG Key ID: 141310D8E3ED08A5

View File

@ -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