summaryrefslogtreecommitdiffstats
path: root/libpyside
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-12-28 14:50:46 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2010-12-29 10:14:28 -0200
commite8c0ba238a4807a77033ad3d3087787959dc1cc3 (patch)
tree5a1c5190103e7811f5a6a72f7e44efc8b6c4bfc3 /libpyside
parent4b6cc4d478726762d71578a8e2cd0049740d84a6 (diff)
downloadpyside-e8c0ba238a4807a77033ad3d3087787959dc1cc3.tar.gz
pyside-e8c0ba238a4807a77033ad3d3087787959dc1cc3.tar.xz
pyside-e8c0ba238a4807a77033ad3d3087787959dc1cc3.zip
Fix bug#563 - "Unhandled signal emitting with invalid signature (which leads to application crash)"
Diffstat (limited to 'libpyside')
-rw-r--r--libpyside/signalmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpyside/signalmanager.cpp b/libpyside/signalmanager.cpp
index 6cdc3e1..75a0d19 100644
--- a/libpyside/signalmanager.cpp
+++ b/libpyside/signalmanager.cpp
@@ -188,7 +188,7 @@ static bool emitNormalSignal(QObject* source, int signalIndex, const char* signa
Shiboken::AutoDecRef sequence(PySequence_Fast(args, 0));
int argsGiven = PySequence_Fast_GET_SIZE(sequence.object());
- if (argsGiven > argTypes.count()) {
+ if (argsGiven != argTypes.count()) {
PyErr_Format(PyExc_TypeError, "%s only accepts %d arguments, %d given!", signal, argTypes.count(), argsGiven);
return false;
}