diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2010-04-12 04:39:44 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2010-04-12 06:13:17 (GMT) |
commit | a1f2ebcda0ff7904613a0e1ab02e6e9fdfa5b494 (patch) | |
tree | 243ba7ff44373092757bdb4e87b95a63de57e0a2 /src | |
parent | daf297de1837d9462f172c213c5d49eca775491a (diff) | |
download | Qt-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.cpp | 2 |
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); |