From ac5e8f92d3bb5820e7a4bdc903473d421463922d Mon Sep 17 00:00:00 2001 From: Bea Lam Date: Tue, 29 Sep 2009 12:04:17 +1000 Subject: Fix crash bug when inspecting QmlBoundSignalParameters objects in debugger. --- src/declarative/qml/qmlboundsignal.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/declarative/qml/qmlboundsignal.cpp b/src/declarative/qml/qmlboundsignal.cpp index 08c3387..ce591e8 100644 --- a/src/declarative/qml/qmlboundsignal.cpp +++ b/src/declarative/qml/qmlboundsignal.cpp @@ -243,6 +243,9 @@ void QmlBoundSignalParameters::clearValues() int QmlBoundSignalParameters::metaCall(QMetaObject::Call c, int id, void **a) { + if (!values) + return -1; + if (c == QMetaObject::ReadProperty && id >= 1) { QmlMetaType::copy(types[id - 1], a[0], values[id]); return -1; -- cgit v0.12