This commit is contained in:
mauke 2024-10-03 14:55:02 -04:00 committed by GitHub
commit 4c33d10e19
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -238,9 +238,11 @@ TimelineFilter::filterAcceptsRow(int source_row, const QModelIndex &) const
if (auto s = sourceModel()) { if (auto s = sourceModel()) {
auto idx = s->index(source_row, 0); auto idx = s->index(source_row, 0);
if (!contentFilter.isEmpty() && !s->data(idx, TimelineModel::Body) if (
.toString() !contentFilter.isEmpty()
.contains(contentFilter, Qt::CaseInsensitive)) { && !s->data(idx, TimelineModel::Body).toString().contains(contentFilter, Qt::CaseInsensitive)
&& !s->data(idx, TimelineModel::UserName).toString().contains(contentFilter, Qt::CaseInsensitive)
) {
return false; return false;
} }