diff options
Diffstat (limited to 'src/declarative/qml/qmlexpression.cpp')
-rw-r--r-- | src/declarative/qml/qmlexpression.cpp | 2 |
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; } |