summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-12-01 00:24:57 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-12-01 00:24:57 +0100
commit65152252a4b4c0c40b6c8da6f2819b130ec72166 (patch)
tree31a20f0eb40142954797e20757e688e014eede1b /src
parentHide me underneath the space tree (diff)
downloadnheko-65152252a4b4c0c40b6c8da6f2819b130ec72166.tar.xz
Leaves can't collapse
Diffstat (limited to 'src')
-rw-r--r--src/timeline/CommunitiesModel.cpp1
-rw-r--r--src/timeline/CommunitiesModel.h2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/timeline/CommunitiesModel.cpp b/src/timeline/CommunitiesModel.cpp

index 7b323bb9..0db3b0b0 100644 --- a/src/timeline/CommunitiesModel.cpp +++ b/src/timeline/CommunitiesModel.cpp
@@ -438,7 +438,6 @@ tagIdToCat(QString tagId) bool FilteredCommunitiesModel::lessThan(const QModelIndex &left, const QModelIndex &right) const { - nhlog::ui()->debug("lessThan"); QModelIndex const left_idx = sourceModel()->index(left.row(), 0, QModelIndex()); QModelIndex const right_idx = sourceModel()->index(right.row(), 0, QModelIndex()); diff --git a/src/timeline/CommunitiesModel.h b/src/timeline/CommunitiesModel.h
index 79f8c33a..21d24829 100644 --- a/src/timeline/CommunitiesModel.h +++ b/src/timeline/CommunitiesModel.h
@@ -74,7 +74,7 @@ public: const auto depth = tree[index].depth; int i = index + 1; for (; i < size(); i++) - if (tree[i].depth == depth) + if (tree[i].depth <= depth) break; return i - 1; }