diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-05-19 04:29:24 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-05-19 04:29:24 (GMT) |
commit | 14ecb79de540af894e779fcc11937c82ffda8cc8 (patch) | |
tree | 57192c480e35ed8d244bbe757945c01703ebf0a6 /src/declarative/util | |
parent | e007505d8f35c1194caf80ffc4f1e46561ff7be3 (diff) | |
download | Qt-14ecb79de540af894e779fcc11937c82ffda8cc8.zip Qt-14ecb79de540af894e779fcc11937c82ffda8cc8.tar.gz Qt-14ecb79de540af894e779fcc11937c82ffda8cc8.tar.bz2 |
Don't crash if the target parent is destroyed.
Task-number: QTBUG-10755
Diffstat (limited to 'src/declarative/util')
-rw-r--r-- | src/declarative/util/qdeclarativestateoperations.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/util/qdeclarativestateoperations.cpp b/src/declarative/util/qdeclarativestateoperations.cpp index b11c0c2..80ae5f5 100644 --- a/src/declarative/util/qdeclarativestateoperations.cpp +++ b/src/declarative/util/qdeclarativestateoperations.cpp @@ -69,7 +69,7 @@ public: rewindParent(0), rewindStackBefore(0) {} QDeclarativeItem *target; - QDeclarativeItem *parent; + QDeclarativeGuard<QDeclarativeItem> parent; QDeclarativeGuard<QDeclarativeItem> origParent; QDeclarativeGuard<QDeclarativeItem> origStackBefore; QDeclarativeItem *rewindParent; |