aboutsummaryrefslogtreecommitdiffstats
path: root/sources
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2018-11-20 13:50:20 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2018-11-20 14:15:46 +0000
commit830fb5792ae7825c4cc5ab45330f39ea7567d73b (patch)
treefda51bbac487cc9b4e7d1dd378384a4f9a5f27fc /sources
parent3fd18df188073b95ddb28b5e5f2307fa08b7c2dd (diff)
Pyside2: Fix crash invoking QScxmlStateMachine::submitEvent(QScxmlEvent*)
Specify C++ ownership for the event (as is done for QCoreApplication::postEvent() and similar). Fixes: PYSIDE-850 Change-Id: I8d34842823d80779716d407e4fa6268533c5d080 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources')
-rw-r--r--sources/pyside2/PySide2/QtScxml/typesystem_scxml.xml8
1 files changed, 7 insertions, 1 deletions
diff --git a/sources/pyside2/PySide2/QtScxml/typesystem_scxml.xml b/sources/pyside2/PySide2/QtScxml/typesystem_scxml.xml
index 67a0cc4b7..616a5a782 100644
--- a/sources/pyside2/PySide2/QtScxml/typesystem_scxml.xml
+++ b/sources/pyside2/PySide2/QtScxml/typesystem_scxml.xml
@@ -52,7 +52,13 @@
<object-type name="QScxmlInvokableService"/>
<object-type name="QScxmlInvokableServiceFactory"/>
<object-type name="QScxmlStaticScxmlServiceFactory"/>
- <object-type name="QScxmlStateMachine"/>
+ <object-type name="QScxmlStateMachine">
+ <modify-function signature="submitEvent(QScxmlEvent*)">
+ <modify-argument index="1">
+ <define-ownership owner="c++"/>
+ </modify-argument>
+ </modify-function>
+ </object-type>
<object-type name="QScxmlTableData"/>
<object-type name="QScxmlDataModel" since="5.12">
<!-- Needs to have exports fixed -->