summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qdeclarativecontext_p.h
diff options
context:
space:
mode:
authorMartin Smith <msmith@trolltech.com>2010-04-13 08:20:16 (GMT)
committerMartin Smith <msmith@trolltech.com>2010-04-13 08:20:16 (GMT)
commitadd41080b9a4e2319007063bd73447f336933e9e (patch)
tree2b5bcbf18d4a0b3dc96043a430830c8212e85749 /src/declarative/qml/qdeclarativecontext_p.h
parent1055099e331af3b10d0b81b1a965e7d3db5f272d (diff)
parentfbacd0fb2eb41470b090a3cbca7535f78689a382 (diff)
downloadQt-add41080b9a4e2319007063bd73447f336933e9e.zip
Qt-add41080b9a4e2319007063bd73447f336933e9e.tar.gz
Qt-add41080b9a4e2319007063bd73447f336933e9e.tar.bz2
Merge branch '4.7' of git@scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.7
Diffstat (limited to 'src/declarative/qml/qdeclarativecontext_p.h')
-rw-r--r--src/declarative/qml/qdeclarativecontext_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/qml/qdeclarativecontext_p.h b/src/declarative/qml/qdeclarativecontext_p.h
index 6c5a1f7..eee72b6 100644
--- a/src/declarative/qml/qdeclarativecontext_p.h
+++ b/src/declarative/qml/qdeclarativecontext_p.h
@@ -174,7 +174,7 @@ public:
inline ContextGuard &operator=(QObject *obj)
{ QDeclarativeGuard<QObject>::operator=(obj); return *this; }
virtual void objectDestroyed(QObject *) {
- if (!QObjectPrivate::get(context->contextObject)->wasDeleted) bindings.notify();
+ if (context->contextObject && !QObjectPrivate::get(context->contextObject)->wasDeleted) bindings.notify();
}
QDeclarativeContextData *context;
QDeclarativeNotifier bindings;