diff options
author | Christiaan Janssen <christiaan.janssen@nokia.com> | 2011-04-29 13:54:59 (GMT) |
---|---|---|
committer | Christiaan Janssen <christiaan.janssen@nokia.com> | 2011-05-06 09:02:27 (GMT) |
commit | 582be247290fd015798b3d84d692c0236dbff4e1 (patch) | |
tree | 0b700b41315ab075d30ab9a9749e40f75943f8db /src | |
parent | 1f0f8a1b15fa4efa58feb2799614afc8bf0bd6e3 (diff) | |
download | Qt-582be247290fd015798b3d84d692c0236dbff4e1.zip Qt-582be247290fd015798b3d84d692c0236dbff4e1.tar.gz Qt-582be247290fd015798b3d84d692c0236dbff4e1.tar.bz2 |
QmlDebugger: removing slots in Live Preview
Reviewed-by: Kai Koehne
Diffstat (limited to 'src')
-rw-r--r-- | src/declarative/qml/qdeclarativeenginedebug.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/declarative/qml/qdeclarativeenginedebug.cpp b/src/declarative/qml/qdeclarativeenginedebug.cpp index 0ac7680..bf6658a 100644 --- a/src/declarative/qml/qdeclarativeenginedebug.cpp +++ b/src/declarative/qml/qdeclarativeenginedebug.cpp @@ -647,7 +647,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); } |