aboutsummaryrefslogtreecommitdiffstats
path: root/libpyside/globalreceiver.cpp
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-04-19 17:59:53 -0300
committerRenato Filho <renato.filho@openbossa.org>2010-04-22 18:21:21 -0300
commit2c937c64420c414a33f76c8df8f1f72592469576 (patch)
treed47a008a25f78400efbb0ebf87ff03b009c85cfd /libpyside/globalreceiver.cpp
parent3468ba1efffc17f532ca69007602e87f19245304 (diff)
Fixed QApplication exit order.
SignalManager need be destroyed before QApplication to avoid memory leak. Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>, Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'libpyside/globalreceiver.cpp')
-rw-r--r--libpyside/globalreceiver.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/libpyside/globalreceiver.cpp b/libpyside/globalreceiver.cpp
index 9fd65b424..e37235d5e 100644
--- a/libpyside/globalreceiver.cpp
+++ b/libpyside/globalreceiver.cpp
@@ -247,10 +247,12 @@ int GlobalReceiver::qt_metacall(QMetaObject::Call call, int id, void** args)
retval = PyObject_CallObject(callback, preparedArgs);
}
- if (!retval)
- qWarning() << "Error calling slot" << m_metaObject.method(id).signature();
- else
+ if (!retval) {
+ qDebug() << "Error calling slot" << m_metaObject.method(id).signature();
+ PyErr_Print();
+ } else {
Py_DECREF(retval);
+ }
return -1;
}