mirror of
https://github.com/SELinuxProject/setools
synced 2025-04-06 17:41:24 +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):
|
def data(self, index, role):
|
||||||
if self.resultlist:
|
if self.resultlist:
|
||||||
if role == Qt.DisplayRole:
|
row = index.row()
|
||||||
row = index.row()
|
col = index.column()
|
||||||
col = index.column()
|
rule = self.resultlist[row]
|
||||||
rule = self.resultlist[row]
|
|
||||||
|
|
||||||
|
if role == Qt.DisplayRole:
|
||||||
if col == 0:
|
if col == 0:
|
||||||
return rule.ruletype
|
return rule.ruletype
|
||||||
elif col == 1:
|
elif col == 1:
|
||||||
|
Loading…
Reference in New Issue
Block a user