From 1e1eba19f8254bd69d64ebf8788eb9ed88416f1f Mon Sep 17 00:00:00 2001 From: wmayer Date: Tue, 24 May 2022 15:54:09 +0200 Subject: [PATCH] Gui: [skip ci] avoid possible recursive loading of a module in WorkbenchManager::createWorkbench --- src/Gui/WorkbenchManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gui/WorkbenchManager.cpp b/src/Gui/WorkbenchManager.cpp index 3da0131fa7..5de48db826 100644 --- a/src/Gui/WorkbenchManager.cpp +++ b/src/Gui/WorkbenchManager.cpp @@ -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(type.createInstance()); // createInstance could return a null pointer if (!wb) {