diff options
author | Lauro Neto <lauro.neto@openbossa.org> | 2010-08-09 14:21:48 -0300 |
---|---|---|
committer | Lauro Neto <lauro.neto@openbossa.org> | 2010-08-09 14:42:58 -0300 |
commit | d26c712a992dbdf3d23475ff964c90febc6de4f4 (patch) | |
tree | 89d63b6387ea5237b659ac4e0629cf2f5084e6c1 /PySide/QtGui | |
parent | 5dc1ac791ddc47cf1236f6428331190c5a0f5ab1 (diff) |
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>
Diffstat (limited to 'PySide/QtGui')
-rw-r--r-- | PySide/QtGui/typesystem_gui_common.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/PySide/QtGui/typesystem_gui_common.xml b/PySide/QtGui/typesystem_gui_common.xml index 1a98e7cca..8709e1800 100644 --- a/PySide/QtGui/typesystem_gui_common.xml +++ b/PySide/QtGui/typesystem_gui_common.xml @@ -4277,7 +4277,7 @@ </inject-code> <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)); </inject-code> </add-function> |