From 9f5dab285d643b3c72e7785e6ec95b595e6ee66d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Capelle?= Date: Sat, 2 May 2020 15:04:44 +0200 Subject: [PATCH] Fix return_value_policy for methods returning QWidget. --- src/runner/pythonrunner.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runner/pythonrunner.cpp b/src/runner/pythonrunner.cpp index e8e3977..bb3a5e0 100644 --- a/src/runner/pythonrunner.cpp +++ b/src/runner/pythonrunner.cpp @@ -1302,7 +1302,7 @@ BOOST_PYTHON_MODULE(mobase) bpy::class_("IPluginInstallerSimple") .def("install", &IPluginInstallerSimple::install) - .def("parentWidget", &IPluginInstallerSimpleWrapper::parentWidget, bpy::return_value_policy()) + .def("parentWidget", &IPluginInstallerSimpleWrapper::parentWidget, bpy::return_value_policy()) .def("manager", &IPluginInstallerSimpleWrapper::manager, bpy::return_value_policy()) ; @@ -1310,7 +1310,7 @@ BOOST_PYTHON_MODULE(mobase) .def("isArchiveSupported", &IPluginInstallerCustom::isArchiveSupported) .def("supportedExtensions", &IPluginInstallerCustom::supportedExtensions) .def("install", &IPluginInstallerCustom::install) - .def("parentWidget", &IPluginInstallerCustomWrapper::parentWidget, bpy::return_value_policy()) + .def("parentWidget", &IPluginInstallerSimpleWrapper::parentWidget, bpy::return_value_policy()) .def("manager", &IPluginInstallerCustomWrapper::manager, bpy::return_value_policy()) ;