mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-10-30 09:30:47 +03:00
Fix searching more past again
This commit is contained in:
parent
b314f41f6b
commit
0597041d8e
1 changed files with 9 additions and 4 deletions
|
@ -45,10 +45,15 @@ TimelineFilter::startFiltering()
|
|||
void
|
||||
TimelineFilter::continueFiltering()
|
||||
{
|
||||
if (auto s = source(); s && s->rowCount() > incrementalSearchIndex) {
|
||||
auto ev = new QEvent(getFilterEventType());
|
||||
// request filtering a new chunk with lower than low priority.
|
||||
QCoreApplication::postEvent(this, ev, Qt::LowEventPriority - 1);
|
||||
if (auto s = source(); s) {
|
||||
if (s->rowCount() > incrementalSearchIndex) {
|
||||
auto ev = new QEvent(getFilterEventType());
|
||||
// request filtering a new chunk with lower than low priority.
|
||||
QCoreApplication::postEvent(this, ev, Qt::LowEventPriority - 1);
|
||||
} else {
|
||||
// We reached the end, so fetch more!
|
||||
fetchAgain();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue