From 7e6dcb45fd315dc2e5768a07d94bd33d7fbdca1c Mon Sep 17 00:00:00 2001 From: looooo Date: Sat, 6 Jan 2018 12:51:41 +0100 Subject: [PATCH] add Base::PyGILStateLocker in Gui::Command::getResources --- src/Gui/Command.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Gui/Command.cpp b/src/Gui/Command.cpp index fd02c5dab6..deb1dcc65b 100644 --- a/src/Gui/Command.cpp +++ b/src/Gui/Command.cpp @@ -908,6 +908,7 @@ PythonCommand::~PythonCommand() const char* PythonCommand::getResource(const char* sName) const { + Base::PyGILStateLocker lock; PyObject* pcTemp; // get the "MenuText" resource string @@ -1303,6 +1304,7 @@ const char* PythonGroupCommand::getHelpUrl(void) const const char* PythonGroupCommand::getResource(const char* sName) const { + Base::PyGILStateLocker lock; PyObject* pcTemp; // get the "MenuText" resource string