mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-02 19:43:55 -07:00
Fix windows deck searching (#5536)
This commit is contained in:
parent
34e0130b90
commit
b956fd4bac
1 changed files with 2 additions and 1 deletions
|
|
@ -179,7 +179,8 @@ void CardDatabaseDisplayModel::fetchMore(const QModelIndex &index)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
beginInsertRows(QModelIndex(), loadedRowCount, loadedRowCount + itemsToFetch - 1);
|
const auto startIndex = qMin(rowCount(QModelIndex()), loadedRowCount);
|
||||||
|
beginInsertRows(QModelIndex(), startIndex, startIndex + itemsToFetch - 1);
|
||||||
|
|
||||||
loadedRowCount += itemsToFetch;
|
loadedRowCount += itemsToFetch;
|
||||||
endInsertRows();
|
endInsertRows();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue