mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 12:38:48 +03:00
Fix stack overflow when filtering timeline
This commit is contained in:
parent
329b4310b3
commit
f440b41195
2 changed files with 5 additions and 3 deletions
|
@ -69,7 +69,8 @@ TimelineFilter::setSource(TimelineModel *s)
|
|||
this->setSourceModel(s);
|
||||
|
||||
connect(s, &TimelineModel::currentIndexChanged, this, &TimelineFilter::currentIndexChanged);
|
||||
connect(s, &TimelineModel::fetchedMore, this, &TimelineFilter::fetchAgain);
|
||||
connect(
|
||||
s, &TimelineModel::fetchedMore, this, &TimelineFilter::fetchAgain, Qt::QueuedConnection);
|
||||
|
||||
emit sourceChanged();
|
||||
invalidateFilter();
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue