From a98aa46aed7808431dafd3165373afbc2b675e43 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Tue, 22 Dec 2020 00:00:00 +0000 Subject: [PATCH] fix static designer plugins actions initialization Signed-off-by: Ivailo Monev --- src/tools/designer/qdesigner_actions.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tools/designer/qdesigner_actions.cpp b/src/tools/designer/qdesigner_actions.cpp index e5aa3d489..43f0e9097 100644 --- a/src/tools/designer/qdesigner_actions.cpp +++ b/src/tools/designer/qdesigner_actions.cpp @@ -52,6 +52,7 @@ #include "codedialog_p.h" #include "qdesigner_formwindowmanager_p.h" #include "qdesigner_integration_p.h" +#include "qdesigner_components.h" // sdk #include "abstractformeditor.h" @@ -340,7 +341,8 @@ QDesignerActions::QDesignerActions(QDesignerWorkbench *workbench) connect(formWindowManager, SIGNAL(activeFormWindowChanged(QDesignerFormWindowInterface*)), this, SLOT(activeFormWindowChanged(QDesignerFormWindowInterface*))); - QList builtinPlugins = m_core->pluginManager()->instances(); + QList builtinPlugins = QDesignerComponents::initializePlugins(m_core); + m_core->pluginManager()->ensureInitializedStatic(builtinPlugins); foreach (QObject *plugin, builtinPlugins) { if (QDesignerFormEditorPluginInterface *formEditorPlugin = qobject_cast(plugin)) { if (QAction *action = formEditorPlugin->action()) {