summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2011-02-10 16:39:49 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2011-02-11 14:40:42 -0300
commit8eb529bda3d2f965d8d20c5ea8979f86d97b6e3f (patch)
tree06641457624c8d99c5aa4b5518e70947bf049ff7
parentc3d180fdc269183cb4f46ee773bb8521f283bff0 (diff)
downloadpyside-8eb529bda3d2f965d8d20c5ea8979f86d97b6e3f.tar.gz
pyside-8eb529bda3d2f965d8d20c5ea8979f86d97b6e3f.tar.xz
pyside-8eb529bda3d2f965d8d20c5ea8979f86d97b6e3f.zip
Increments reference of None object on custom code for QState.addTransition method.
Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
-rw-r--r--PySide/QtCore/typesystem_core.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/PySide/QtCore/typesystem_core.xml b/PySide/QtCore/typesystem_core.xml
index 51238e2..24b1838 100644
--- a/PySide/QtCore/typesystem_core.xml
+++ b/PySide/QtCore/typesystem_core.xml
@@ -2833,6 +2833,7 @@
if (PySide::SignalManager::registerMetaMethod(%1, signalName.mid(1).toAscii().data(), QMetaMethod::Signal)) {
%PYARG_0 = %CONVERTTOPYTHON[QSignalTransition*](%CPPSELF->addTransition(%1, %2, %3));
} else {
+ Py_INCREF(Py_None);
%PYARG_0 = Py_None;
}
</inject-code>