Commit 01cbb91a authored by Wolfgang Rohdewald's avatar Wolfgang Rohdewald
Browse files

Tables: fix possible color problem

parent 1eda22b1
......@@ -131,7 +131,7 @@ class TablesModel(QAbstractTableModel):
result = i18n((table.myRuleset if table.myRuleset else table.ruleset).name)
elif role == Qt.ForegroundRole:
palette = KApplication.palette()
color = palette.windowText() if table.myRuleset else 'red'
color = palette.windowText().color() if table.myRuleset else 'red'
result = QColor(color)
return result
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment