Gui: [skip ci] re-add removed Py_INCREF of module

This commit is contained in:
wmayer
2021-02-27 11:13:30 +01:00
parent df0f979f3b
commit bd755b654b

View File

@@ -340,6 +340,7 @@ Application::Application(std::map<std::string,std::string> &mConfig)
// Translate module
PyObject* pTranslateModule = (new Base::Translate)->module().ptr();
Py_INCREF(pTranslateModule);
PyModule_AddObject(pAppModule, "Qt", pTranslateModule);
//insert Units module