summaryrefslogtreecommitdiffstats
path: root/src/sessiontreemodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sessiontreemodel.cpp')
-rw-r--r--src/sessiontreemodel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sessiontreemodel.cpp b/src/sessiontreemodel.cpp
index 08b43e4..ac60ee9 100644
--- a/src/sessiontreemodel.cpp
+++ b/src/sessiontreemodel.cpp
@@ -53,8 +53,8 @@ QVariant SessionTreeModel::data(const QModelIndex &index, int role) const {
return s->shortDescription();
if (role == Qt::ToolTipRole)
return s->description();
- if (role == Qt::BackgroundRole)
- return s->backgroundRole();
+ if (role == Qt::ForegroundRole)
+ return s->foregroundRole();
if (role == Qt::DecorationRole) {
if (index.column() == 0) { // TODO: is this line needed?
return s->icon();