diff options
author | Robin Burchell <robin.burchell@jollamobile.com> | 2013-02-28 02:24:02 +0100 |
---|---|---|
committer | Robin Burchell <robin+qt@viroteck.net> | 2013-02-28 02:38:22 +0100 |
commit | 12585d7c1a18914345dffd4c538dcd4a2a44fd0f (patch) | |
tree | 10b16a4cc7b573607715aed9321568a7827d3d38 | |
parent | e0d7cc1c701397ceba111be2c1155b846554eae8 (diff) |
Fix off-by-one in beginInsertRows() call.
Change-Id: Ic6a28fc1e3416db50daf1cab6fce49d1ac24848e
Reviewed-by: John Brooks <john.brooks@dereferenced.net>
Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>
-rw-r--r-- | plugins/declarative/organizer/qdeclarativeorganizermodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/declarative/organizer/qdeclarativeorganizermodel.cpp b/plugins/declarative/organizer/qdeclarativeorganizermodel.cpp index eb39d81d7e..35499c3b5e 100644 --- a/plugins/declarative/organizer/qdeclarativeorganizermodel.cpp +++ b/plugins/declarative/organizer/qdeclarativeorganizermodel.cpp @@ -575,7 +575,7 @@ void QDeclarativeOrganizerModel::addSorted(QDeclarativeOrganizerItem* item) { removeItemsFromModel(QList<QString>() << item->itemId()); int idx = itemIndex(item); - beginInsertRows(QModelIndex(), idx, idx + 1); + beginInsertRows(QModelIndex(), idx, idx); d->m_items.insert(idx, item); endInsertRows(); d->m_itemMap.insert(item->itemId(), item); |