mirror of
https://github.com/SELinuxProject/setools
synced 2025-03-31 15:56:22 +00:00
FSUseTableModel: fix variable assignment scope issue in data()
This commit is contained in:
parent
21c70d5b74
commit
7434043500
@ -46,11 +46,11 @@ class FSUseTableModel(QAbstractTableModel):
|
||||
|
||||
def data(self, index, role):
|
||||
if self.resultlist:
|
||||
if role == Qt.DisplayRole:
|
||||
row = index.row()
|
||||
col = index.column()
|
||||
rule = self.resultlist[row]
|
||||
row = index.row()
|
||||
col = index.column()
|
||||
rule = self.resultlist[row]
|
||||
|
||||
if role == Qt.DisplayRole:
|
||||
if col == 0:
|
||||
return rule.ruletype
|
||||
elif col == 1:
|
||||
|
Loading…
Reference in New Issue
Block a user