add Base::PyGILStateLocker in Gui::Command::getResources

This commit is contained in:
looooo
2018-01-06 12:51:41 +01:00
committed by wmayer
parent 9689717d34
commit 7e6dcb45fd

View File

@@ -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