summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-11-01 21:31:08 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2023-11-01 21:31:08 +0100
commit8b39b65d4300230d370fe9434cf4f72c5b5a98a6 (patch)
tree1003f0e45acecf6142d097815dcb08009e53c4ec
parentPossibly fix crash when room is cleared on event delegate (diff)
downloadnheko-8b39b65d4300230d370fe9434cf4f72c5b5a98a6.tar.xz
Possibly fix pagination in search
-rw-r--r--src/timeline/TimelineFilter.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/timeline/TimelineFilter.cpp b/src/timeline/TimelineFilter.cpp
index c2d9e31b..ae7e9791 100644
--- a/src/timeline/TimelineFilter.cpp
+++ b/src/timeline/TimelineFilter.cpp
@@ -81,9 +81,7 @@ TimelineFilter::event(QEvent *ev)
                                s->index(std::min(incrementalSearchIndex, count - 1)),
                                {FilterRole});
 
-                if (incrementalSearchIndex < count && incrementalSearchIndex > 0) {
-                    continueFiltering();
-                }
+                continueFiltering();
             }
             emit isFilteringChanged();
         }