Fix argument check in QAction constructor.
The fourth argument for QAction(string, qobject, keysequence, pyobject) was initialized as a NULL pointer by default but was checked against Py_None before being used. Reviewer: Renato Oliveira <renato.filho@openbossa.org> Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
This commit is contained in:
parent
5dc1ac791d
commit
d26c712a99
1 changed files with 1 additions and 1 deletions
|
|
@ -4277,7 +4277,7 @@
|
||||||
</inject-code>
|
</inject-code>
|
||||||
|
|
||||||
<inject-code class="target" position="end">
|
<inject-code class="target" position="end">
|
||||||
if (%PYARG_4 != Py_None)
|
if (%PYARG_4 && %PYARG_4 != Py_None)
|
||||||
Shiboken::AutoDecRef result(PyObject_CallMethod(%PYSELF, "connect", "OsO", %PYSELF, SIGNAL(triggered(bool)), %PYARG_4));
|
Shiboken::AutoDecRef result(PyObject_CallMethod(%PYSELF, "connect", "OsO", %PYSELF, SIGNAL(triggered(bool)), %PYARG_4));
|
||||||
</inject-code>
|
</inject-code>
|
||||||
</add-function>
|
</add-function>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue