From 1e13f5718e712ee75dfc05b5d1bb017b6926b5a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCgler?= Date: Sat, 16 Feb 2013 14:47:13 +0100 Subject: [PATCH] Fix off-by-one in RunnerModel Forward-ported from RB REVIEW:108922 --- src/declarativeimports/core/runnermodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/declarativeimports/core/runnermodel.cpp b/src/declarativeimports/core/runnermodel.cpp index ee1b54d45..e9152ef61 100644 --- a/src/declarativeimports/core/runnermodel.cpp +++ b/src/declarativeimports/core/runnermodel.cpp @@ -223,7 +223,7 @@ void RunnerModel::matchesChanged(const QList &matches) } if (!fullReset) { // Not a full reset, inserting rows - beginInsertRows(QModelIndex(), oldCount, newCount); + beginInsertRows(QModelIndex(), oldCount, newCount-1); m_matches = matches; endInsertRows(); emit countChanged();