If an error occur when calling a slot, print the error to stderr.
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
This commit is contained in:
parent
9657bedf75
commit
d5fced1cf1
1 changed files with 3 additions and 1 deletions
|
|
@ -279,8 +279,10 @@ int PySide::SignalManager::qt_metacall(QObject* object, QMetaObject::Call call,
|
||||||
Shiboken::AutoDecRef pyMethod(PyObject_GetAttrString(self, qPrintable(methodName)));
|
Shiboken::AutoDecRef pyMethod(PyObject_GetAttrString(self, qPrintable(methodName)));
|
||||||
if (!pyMethod.isNull()) {
|
if (!pyMethod.isNull()) {
|
||||||
Shiboken::AutoDecRef retval(PyObject_CallObject(pyMethod, preparedArgs));
|
Shiboken::AutoDecRef retval(PyObject_CallObject(pyMethod, preparedArgs));
|
||||||
if (retval.isNull())
|
if (retval.isNull()) {
|
||||||
qWarning() << "Error calling slot" << methodName;
|
qWarning() << "Error calling slot" << methodName;
|
||||||
|
PyErr_Print();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
qWarning() << "Dynamic slot" << methodName << "not found!";
|
qWarning() << "Dynamic slot" << methodName << "not found!";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue