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:
parent
b38d83f8bd
commit
aade838add
1 changed files with 1 additions and 1 deletions
|
|
@ -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(","));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue