flags() rewrite
This commit is contained in:
parent
409bcd27fc
commit
d74b52c00b
@ -489,10 +489,10 @@ class QubesTableModel(QAbstractTableModel):
|
|||||||
if not index.isValid():
|
if not index.isValid():
|
||||||
return False
|
return False
|
||||||
|
|
||||||
col_name = self.columns_indices[index.column()]
|
def_flags = QAbstractTableModel.flags(self, index)
|
||||||
if col_name == "Include in backups":
|
if self.columns_indices[index.column()] == "Include in backups":
|
||||||
return Qt.ItemIsEnabled | Qt.ItemIsUserCheckable
|
return def_flags | Qt.ItemIsUserCheckable
|
||||||
return QAbstractTableModel.flags(self, index)
|
return def_flags
|
||||||
|
|
||||||
vm_shutdown_timeout = 20000 # in msec
|
vm_shutdown_timeout = 20000 # in msec
|
||||||
vm_restart_check_timeout = 1000 # in msec
|
vm_restart_check_timeout = 1000 # in msec
|
||||||
|
Loading…
Reference in New Issue
Block a user