Gui: [skip ci] avoid possible recursive loading of a module in WorkbenchManager::createWorkbench

This commit is contained in:
wmayer
2022-05-24 15:54:09 +02:00
parent fc9e19aafb
commit 1e1eba19f8

View File

@@ -71,7 +71,7 @@ Workbench* WorkbenchManager::createWorkbench (const std::string& name, const std
if (!wb) {
// try to create an instance now
Base::Type type = Base::Type::getTypeIfDerivedFrom(className.c_str(), Workbench::getClassTypeId(), true);
Base::Type type = Base::Type::getTypeIfDerivedFrom(className.c_str(), Workbench::getClassTypeId(), false);
wb = static_cast<Workbench*>(type.createInstance());
// createInstance could return a null pointer
if (!wb) {