Fix assert
authorAaron Kennedy <aaron.kennedy@nokia.com>
Tue, 18 Oct 2011 03:19:57 +0000 (13:19 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 18 Oct 2011 04:14:17 +0000 (06:14 +0200)
Change-Id: I6db293c278f10be7e998ed15fe93b9d328474e6a
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
src/declarative/qml/qdeclarativeproperty.cpp

index a402d24..7a43ef1 100644 (file)
@@ -1301,7 +1301,7 @@ bool QDeclarativePropertyPrivate::writeBinding(QObject *object,
                                                WriteFlags flags)
 {
     Q_ASSERT(object);
-    Q_ASSERT(core.coreIndex);
+    Q_ASSERT(core.coreIndex != -1);
 
     QDeclarativeContextData *context = expression->context();
     QDeclarativeEngine *engine = context->engine;