diff options
author | Bea Lam <bea.lam@nokia.com> | 2009-09-29 02:04:17 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2009-09-29 02:04:17 (GMT) |
commit | ac5e8f92d3bb5820e7a4bdc903473d421463922d (patch) | |
tree | 2bee06b2520c49909cfad72b00409a4d2b3c2b64 | |
parent | 25ccab91fbcd9e61fa160b55fc23d6938ff589bd (diff) | |
download | Qt-ac5e8f92d3bb5820e7a4bdc903473d421463922d.zip Qt-ac5e8f92d3bb5820e7a4bdc903473d421463922d.tar.gz Qt-ac5e8f92d3bb5820e7a4bdc903473d421463922d.tar.bz2 |
Fix crash bug when inspecting QmlBoundSignalParameters objects in
debugger.
-rw-r--r-- | src/declarative/qml/qmlboundsignal.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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; |