QmlDebugger: removing slots in Live Preview
authorChristiaan Janssen <christiaan.janssen@nokia.com>
Fri, 29 Apr 2011 13:54:59 +0000 (15:54 +0200)
committerChristiaan Janssen <christiaan.janssen@nokia.com>
Fri, 27 May 2011 13:59:54 +0000 (15:59 +0200)
Reviewed-by: Kai Koehne
(cherry picked from commit 582be247290fd015798b3d84d692c0236dbff4e1)

src/declarative/qml/qdeclarativeenginedebug.cpp

index 330fcb9..8f22314 100644 (file)
@@ -653,7 +653,10 @@ void QDeclarativeEngineDebugServer::resetBinding(int objectId, const QString &pr
                     }
                 }
             }
-        } else {
+        } else if (hasValidSignal(object, propertyName)) {
+            QDeclarativeProperty property(object, propertyName, context);
+            QDeclarativePropertyPrivate::setSignalExpression(property, 0);
+    } else {
             if (QDeclarativePropertyChanges *propertyChanges = qobject_cast<QDeclarativePropertyChanges *>(object)) {
                 propertyChanges->removeProperty(propertyName);
             }