diff options
author | Hugo Lima <hugo.lima@openbossa.org> | 2010-01-05 10:53:46 -0200 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2010-01-05 11:01:42 -0200 |
commit | aade838add186bf92a2d2d14a77f5469bd23f4c2 (patch) | |
tree | 1d134b3b24350262f20b8e6326fcae08b648cb12 /libpyside | |
parent | b38d83f8bdd7e50cf29ceb43b671807a30d826aa (diff) |
Do not remove arguments when there are no arguments and the slot uses self.
Reviewed by Renato Araújo <renato.filho@openbossa.org>
Diffstat (limited to 'libpyside')
-rw-r--r-- | libpyside/signalmanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpyside/signalmanager.cpp b/libpyside/signalmanager.cpp index 99b2e5ae4..6ac0cb7c0 100644 --- a/libpyside/signalmanager.cpp +++ b/libpyside/signalmanager.cpp @@ -111,7 +111,7 @@ QString PySide::getCallbackSignature(const char* signal, PyObject* callback, boo signature.append('('); if (numArgs == -1) numArgs = std::numeric_limits<int>::max(); - while (args.count() > numArgs - useSelf) { + while (args.count() && args.count() > numArgs - useSelf) { args.removeLast(); } signature.append(args.join(",")); |