mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-29 06:08:48 +03:00
Workaround for broken fetchMore() with reuseItems
This commit is contained in:
parent
30aedd36a1
commit
5bff9df4ae
1 changed files with 4 additions and 0 deletions
|
@ -717,6 +717,10 @@ TimelineModel::data(const QModelIndex &index, int role) const
|
|||
if (index.row() < 0 && index.row() >= rowCount())
|
||||
return QVariant();
|
||||
|
||||
// HACK(Nico): fetchMore likes to break with dynamically sized delegates and reuseItems
|
||||
if (index.row() + 1 == rowCount() && !m_paginationInProgress)
|
||||
const_cast<TimelineModel *>(this)->fetchMore(index);
|
||||
|
||||
auto event = events.get(rowCount() - index.row() - 1);
|
||||
|
||||
if (!event)
|
||||
|
|
Loading…
Reference in a new issue