summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2010-04-12 04:39:44 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2010-04-12 06:13:17 (GMT)
commita1f2ebcda0ff7904613a0e1ab02e6e9fdfa5b494 (patch)
tree243ba7ff44373092757bdb4e87b95a63de57e0a2 /src
parentdaf297de1837d9462f172c213c5d49eca775491a (diff)
downloadQt-a1f2ebcda0ff7904613a0e1ab02e6e9fdfa5b494.zip
Qt-a1f2ebcda0ff7904613a0e1ab02e6e9fdfa5b494.tar.gz
Qt-a1f2ebcda0ff7904613a0e1ab02e6e9fdfa5b494.tar.bz2
Fix PathView crash.
Task-number: QTBUG-9753
Diffstat (limited to 'src')
-rw-r--r--src/declarative/graphicsitems/qdeclarativepathview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativepathview.cpp b/src/declarative/graphicsitems/qdeclarativepathview.cpp
index 5fcac49..06e3540 100644
--- a/src/declarative/graphicsitems/qdeclarativepathview.cpp
+++ b/src/declarative/graphicsitems/qdeclarativepathview.cpp
@@ -1155,7 +1155,7 @@ void QDeclarativePathView::refill()
d->updateItem(d->highlightItem, d->highlightRangeStart);
if (QDeclarativePathViewAttached *att = d->attached(d->highlightItem))
att->setOnPath(true);
- } else if (d->moveReason != QDeclarativePathViewPrivate::SetIndex) {
+ } else if (d->highlightItem && d->moveReason != QDeclarativePathViewPrivate::SetIndex) {
d->updateItem(d->highlightItem, d->currentItemOffset);
if (QDeclarativePathViewAttached *att = d->attached(d->highlightItem))
att->setOnPath(currentVisible);