From b9c5786bcda0fd48684c75b592d61bc427a9dba6 Mon Sep 17 00:00:00 2001 From: Bea Lam Date: Tue, 29 Sep 2009 11:17:24 +1000 Subject: Fix to not crash when viewing the value of a property that is a QObject* (in this case, a QmlXmlListModel_QML_1*). --- src/declarative/qml/qmlenginedebug.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/declarative/qml/qmlenginedebug.cpp b/src/declarative/qml/qmlenginedebug.cpp index 9f0bae6..16129ee 100644 --- a/src/declarative/qml/qmlenginedebug.cpp +++ b/src/declarative/qml/qmlenginedebug.cpp @@ -318,8 +318,8 @@ void QmlEngineDebugServer::propertyChanged(int id, int objectId, const QByteArra QByteArray reply; QVariant v; QDataStream rs(&reply, QIODevice::WriteOnly); - - if (value.type() == QVariant::UserType) { + + if (value.type() == QVariant::UserType || QmlMetaType::isObject(value.userType())) { QObject *o = QmlMetaType::toQObject(value); if (o) { QString objectName = o->objectName(); -- cgit v0.12