Replace '2' with Qt.Checked
This commit is contained in:
parent
1812989ecd
commit
c666357625
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user