summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-08-06 03:01:12 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-08-06 03:01:12 (GMT)
commita19afebf6acee64aa4a5c804a87846c91650a474 (patch)
tree5257acb3eca78cf565697a82f9ee42a92a663785
parentd018b73c2a79e79f50a988c848f040d263d0e75b (diff)
downloadQt-a19afebf6acee64aa4a5c804a87846c91650a474.zip
Qt-a19afebf6acee64aa4a5c804a87846c91650a474.tar.gz
Qt-a19afebf6acee64aa4a5c804a87846c91650a474.tar.bz2
Fix expression linked list.
-rw-r--r--src/declarative/qml/qmlexpression.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlexpression.cpp b/src/declarative/qml/qmlexpression.cpp
index 3206734..a9175ea 100644
--- a/src/declarative/qml/qmlexpression.cpp
+++ b/src/declarative/qml/qmlexpression.cpp
@@ -66,6 +66,7 @@ void QmlExpressionPrivate::init(QmlContext *ctxt, const QString &expr,
if (ctxt) {
QmlContextPrivate *cp = ctxt->d_func();
nextExpression = cp->expressions;
+ if (nextExpression) nextExpression->prevExpression = &nextExpression;
prevExpression = &cp->expressions;
cp->expressions = this;
}
@@ -91,6 +92,7 @@ void QmlExpressionPrivate::init(QmlContext *ctxt, void *expr, QmlRefCount *rc,
if (ctxt) {
QmlContextPrivate *cp = ctxt->d_func();
nextExpression = cp->expressions;
+ if (nextExpression) nextExpression->prevExpression = &nextExpression;
prevExpression = &cp->expressions;
cp->expressions = this;
}