Do not remove arguments when there are no arguments and the slot uses self.

Reviewed by Renato Araújo <renato.filho@openbossa.org>
This commit is contained in:
Hugo Lima 2010-01-05 10:53:46 -02:00
commit aade838add

View file

@ -111,7 +111,7 @@ QString PySide::getCallbackSignature(const char* signal, PyObject* callback, boo
signature.append('('); signature.append('(');
if (numArgs == -1) if (numArgs == -1)
numArgs = std::numeric_limits<int>::max(); numArgs = std::numeric_limits<int>::max();
while (args.count() > numArgs - useSelf) { while (args.count() && args.count() > numArgs - useSelf) {
args.removeLast(); args.removeLast();
} }
signature.append(args.join(",")); signature.append(args.join(","));