Fix off-by-one in RunnerModel

Forward-ported from RB

REVIEW:108922
This commit is contained in:
Sebastian Kügler 2013-02-16 14:47:13 +01:00
parent 72e2b9f1b6
commit 1e13f5718e

View File

@ -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();