aboutsummaryrefslogtreecommitdiffstats
path: root/libpyside
diff options
context:
space:
mode:
authorrenatofilho <renato.filho@openbossa.org>2010-09-24 15:59:11 -0300
committerrenatofilho <renato.filho@openbossa.org>2010-09-24 16:44:45 -0300
commit41bd89393e3203c027cb659771e390a7101c5fc4 (patch)
tree8b30fab7013784eb99edb57acb068c1364f1bf2c /libpyside
parent805824d4b637a240f5f26bde1f09d11780551950 (diff)
Inlcluded assert to avoid call objectcts metacall whithout Python relatives.
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'libpyside')
-rw-r--r--libpyside/signalmanager.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libpyside/signalmanager.cpp b/libpyside/signalmanager.cpp
index 3724500d5..b8e97f922 100644
--- a/libpyside/signalmanager.cpp
+++ b/libpyside/signalmanager.cpp
@@ -355,6 +355,7 @@ int SignalManager::qt_metacall(QObject* object, QMetaObject::Call call, int id,
QMetaProperty mp;
Shiboken::TypeResolver* typeResolver = 0;
PyObject* pySelf = Shiboken::BindingManager::instance().retrieveWrapper(object);
+ Q_ASSERT(pySelf);
if (call != QMetaObject::InvokeMetaMethod) {
mp = metaObject->property(id);