diff options
-rw-r--r-- | sources/shiboken6/generator/shiboken/cppgenerator.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sources/shiboken6/generator/shiboken/cppgenerator.cpp b/sources/shiboken6/generator/shiboken/cppgenerator.cpp index aaab6906a..9eec438a6 100644 --- a/sources/shiboken6/generator/shiboken/cppgenerator.cpp +++ b/sources/shiboken6/generator/shiboken/cppgenerator.cpp @@ -1885,6 +1885,10 @@ void CppGenerator::writeConstructorWrapper(TextStream &s, const AbstractMetaFunc s << outdent << '\n'; } + // PYSIDE-1478: Switching must also happen at object creation time. + if (usePySideExtensions()) + s << "PySide::Feature::Select(self);\n"; + writeMethodWrapperPreamble(s, overloadData, classContext); s << '\n'; |