summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-01-20 07:09:36 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-01-20 07:09:36 (GMT)
commitbfbba2d4b3e6371ee6d4b6c1b0ff1c54680b8872 (patch)
tree39b72d535ed5e75bb803b634e91eec0dea537286 /src
parent97994c845c92cf16902cf201400678f9d9791fe6 (diff)
downloadQt-bfbba2d4b3e6371ee6d4b6c1b0ff1c54680b8872.zip
Qt-bfbba2d4b3e6371ee6d4b6c1b0ff1c54680b8872.tar.gz
Qt-bfbba2d4b3e6371ee6d4b6c1b0ff1c54680b8872.tar.bz2
Crash
Diffstat (limited to 'src')
-rw-r--r--src/declarative/graphicsitems/qmlgraphicslistview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qmlgraphicslistview.cpp b/src/declarative/graphicsitems/qmlgraphicslistview.cpp
index 2752551..e0fa8f5 100644
--- a/src/declarative/graphicsitems/qmlgraphicslistview.cpp
+++ b/src/declarative/graphicsitems/qmlgraphicslistview.cpp
@@ -2472,7 +2472,7 @@ void QmlGraphicsListView::itemsInserted(int modelIndex, int count)
// Update the indexes of the following visible items.
for (; index < d->visibleItems.count(); ++index) {
FxListItem *listItem = d->visibleItems.at(index);
- if (listItem->item != d->currentItem->item)
+ if (d->currentItem && listItem->item != d->currentItem->item)
listItem->setPosition(listItem->position() + diff);
if (listItem->index != -1)
listItem->index += count;