FSUseTableModel: fix variable assignment scope issue in data()

This commit is contained in:
Chris PeBenito 2016-03-30 10:46:47 -04:00
parent 21c70d5b74
commit 7434043500

View File

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