mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-12-04 08:08:49 +03:00
Compare commits
2 commits
d3051aa8ff
...
4c33d10e19
Author | SHA1 | Date | |
---|---|---|---|
|
4c33d10e19 | ||
|
d299f7af5c |
1 changed files with 5 additions and 3 deletions
|
@ -238,9 +238,11 @@ TimelineFilter::filterAcceptsRow(int source_row, const QModelIndex &) const
|
|||
|
||||
if (auto s = sourceModel()) {
|
||||
auto idx = s->index(source_row, 0);
|
||||
if (!contentFilter.isEmpty() && !s->data(idx, TimelineModel::Body)
|
||||
.toString()
|
||||
.contains(contentFilter, Qt::CaseInsensitive)) {
|
||||
if (
|
||||
!contentFilter.isEmpty()
|
||||
&& !s->data(idx, TimelineModel::Body).toString().contains(contentFilter, Qt::CaseInsensitive)
|
||||
&& !s->data(idx, TimelineModel::UserName).toString().contains(contentFilter, Qt::CaseInsensitive)
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue