From 8eb529bda3d2f965d8d20c5ea8979f86d97b6e3f Mon Sep 17 00:00:00 2001 From: Marcelo Lira Date: Thu, 10 Feb 2011 16:39:49 -0300 Subject: [PATCH] Increments reference of None object on custom code for QState.addTransition method. Reviewed by Hugo Parente Reviewed by Luciano Wolf --- PySide/QtCore/typesystem_core.xml | 1 + 1 file changed, 1 insertion(+) 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; }