diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-11-22 19:18:10 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-11-22 19:18:10 +0100 |
commit | f440b411953c2aad752848390d67de7e75a2f1bc (patch) | |
tree | ceefcec45f5b33dab805adef1fa7b7b4ad044a6a /src/timeline/TimelineModel.cpp | |
parent | Fix cmark warning (diff) | |
download | nheko-f440b411953c2aad752848390d67de7e75a2f1bc.tar.xz |
Fix stack overflow when filtering timeline
Diffstat (limited to 'src/timeline/TimelineModel.cpp')
-rw-r--r-- | src/timeline/TimelineModel.cpp | 5 |
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 |