Fix searching more past again

This commit is contained in:
Nicolas Werner 2022-12-19 03:47:30 +01:00
parent b314f41f6b
commit 0597041d8e
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
1 changed files with 9 additions and 4 deletions

View File

@ -45,10 +45,15 @@ TimelineFilter::startFiltering()
void void
TimelineFilter::continueFiltering() TimelineFilter::continueFiltering()
{ {
if (auto s = source(); s && s->rowCount() > incrementalSearchIndex) { if (auto s = source(); s) {
auto ev = new QEvent(getFilterEventType()); if (s->rowCount() > incrementalSearchIndex) {
// request filtering a new chunk with lower than low priority. auto ev = new QEvent(getFilterEventType());
QCoreApplication::postEvent(this, ev, Qt::LowEventPriority - 1); // 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();
}
} }
} }