Fix stack overflow when filtering timeline
This commit is contained in:
parent
329b4310b3
commit
f440b41195
@ -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 New Issue
Block a user