summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Hein <hein@kde.org>2017-01-25 18:13:47 (GMT)
committerEike Hein <hein@kde.org>2017-01-25 18:33:04 (GMT)
commitf5bf988c5bd50ec0d39e4ca4ad19ea3b25a4fbf5 (patch)
treeb441660e375d6f6d3b5df0c55c1d4b04891caa38
parente47a5c96783453d974404f80853dccea9bd10389 (diff)
Fix group parents not appearing when disabling inline grouping.
Reviewers: #plasma, broulik Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D4284
-rw-r--r--libtaskmanager/tasksmodel.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libtaskmanager/tasksmodel.cpp b/libtaskmanager/tasksmodel.cpp
index d11dc4e..52abce9 100644
--- a/libtaskmanager/tasksmodel.cpp
+++ b/libtaskmanager/tasksmodel.cpp
@@ -1554,7 +1554,8 @@ bool TasksModel::filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent
const QModelIndex &sourceIndex = sourceModel()->index(sourceRow, 0);
// In inline grouping mode, filter out group parents.
- if (d->flattenGroupsProxyModel && sourceIndex.data(AbstractTasksModel::IsGroupParent).toBool()) {
+ if (d->groupInline && d->flattenGroupsProxyModel
+ && sourceIndex.data(AbstractTasksModel::IsGroupParent).toBool()) {
return false;
}