aboutsummaryrefslogtreecommitdiffstats
path: root/libpyside
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2010-02-04 16:10:26 -0200
committerHugo Lima <hugo.lima@openbossa.org>2010-02-04 17:03:58 -0200
commitd5fced1cf150672bf05332d0e51e904763a70a47 (patch)
tree5659177da6e10c1d1ade5dbf69bf63ce0a3b44d9 /libpyside
parent9657bedf75a69d53a0327b53ae191c708bae71bc (diff)
If an error occur when calling a slot, print the error to stderr.
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'libpyside')
-rw-r--r--libpyside/signalmanager.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libpyside/signalmanager.cpp b/libpyside/signalmanager.cpp
index 742eb6a17..22b6d80fc 100644
--- a/libpyside/signalmanager.cpp
+++ b/libpyside/signalmanager.cpp
@@ -279,8 +279,10 @@ int PySide::SignalManager::qt_metacall(QObject* object, QMetaObject::Call call,
Shiboken::AutoDecRef pyMethod(PyObject_GetAttrString(self, qPrintable(methodName)));
if (!pyMethod.isNull()) {
Shiboken::AutoDecRef retval(PyObject_CallObject(pyMethod, preparedArgs));
- if (retval.isNull())
+ if (retval.isNull()) {
qWarning() << "Error calling slot" << methodName;
+ PyErr_Print();
+ }
} else {
qWarning() << "Dynamic slot" << methodName << "not found!";
}