summary refs log tree commit diff
path: root/src/timeline/TimelineModel.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-11-22 19:18:10 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2022-11-22 19:18:10 +0100
commitf440b411953c2aad752848390d67de7e75a2f1bc (patch)
treeceefcec45f5b33dab805adef1fa7b7b4ad044a6a /src/timeline/TimelineModel.cpp
parentFix cmark warning (diff)
downloadnheko-f440b411953c2aad752848390d67de7e75a2f1bc.tar.xz
Fix stack overflow when filtering timeline
Diffstat (limited to 'src/timeline/TimelineModel.cpp')
-rw-r--r--src/timeline/TimelineModel.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp
index 6b764081..dedfa197 100644
--- a/src/timeline/TimelineModel.cpp
+++ b/src/timeline/TimelineModel.cpp
@@ -880,6 +880,9 @@ TimelineModel::setPaginationInProgress(const bool paginationInProgress)
 
     m_paginationInProgress = paginationInProgress;
     emit paginationInProgressChanged(m_paginationInProgress);
+
+    if (m_paginationInProgress)
+        events.fetchMore();
 }
 
 void
@@ -891,8 +894,6 @@ TimelineModel::fetchMore(const QModelIndex &)
     }
 
     setPaginationInProgress(true);
-
-    events.fetchMore();
 }
 
 void