From 0597041d8efdf77ce9baffc14eb451c4e80e8280 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Mon, 19 Dec 2022 03:47:30 +0100 Subject: [PATCH] Fix searching more past again --- src/timeline/TimelineFilter.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/timeline/TimelineFilter.cpp b/src/timeline/TimelineFilter.cpp index 80a4425d..891f87f4 100644 --- a/src/timeline/TimelineFilter.cpp +++ b/src/timeline/TimelineFilter.cpp @@ -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(); + } } }