diff -r 7516d6d86cf5 -r ed14f46c0e55 src/hbwidgets/itemviews/hblistmodel_p.cpp --- a/src/hbwidgets/itemviews/hblistmodel_p.cpp Mon Oct 04 17:49:30 2010 +0300 +++ b/src/hbwidgets/itemviews/hblistmodel_p.cpp Mon Oct 18 18:23:13 2010 +0300 @@ -57,13 +57,14 @@ void HbListModel::insert(int row, HbListWidgetItem *item) { - item->d->mModel = this; //Do not accept duplicate inserts. //Occurs e.g if user of HbListWidgetitem creates HbListWidgetItem and gives a parent //(HbListWidget) but still calls HbListWidget::addItem() if (!item || items.contains(item) ) return; + item->d->mModel = this; + if (row < 0) row = 0; else if (row > items.count())