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;
}
|