Fix off-by-one in RunnerModel
Forward-ported from RB REVIEW:108922
This commit is contained in:
parent
72e2b9f1b6
commit
1e13f5718e
@ -223,7 +223,7 @@ void RunnerModel::matchesChanged(const QList<Plasma::QueryMatch> &matches)
|
||||
}
|
||||
if (!fullReset) {
|
||||
// Not a full reset, inserting rows
|
||||
beginInsertRows(QModelIndex(), oldCount, newCount);
|
||||
beginInsertRows(QModelIndex(), oldCount, newCount-1);
|
||||
m_matches = matches;
|
||||
endInsertRows();
|
||||
emit countChanged();
|
||||
|
Loading…
Reference in New Issue
Block a user