Commit a5625f2f authored by Tim Jenssen's avatar Tim Jenssen

QmlDesigner: initialize actions only at show

Change-Id: Iff6438daf70840116f02fcc439a6327c9401c32c
Reviewed-by: Thomas Hartmann's avatarThomas Hartmann <thomas.hartmann@qt.io>
parent 9fde45fb
...@@ -37,7 +37,6 @@ DesignerActionManagerView::DesignerActionManagerView() ...@@ -37,7 +37,6 @@ DesignerActionManagerView::DesignerActionManagerView()
m_isInRewriterTransaction(false), m_isInRewriterTransaction(false),
m_setupContextDirty(false) m_setupContextDirty(false)
{ {
m_designerActionManager.createDefaultDesignerActions();
} }
void DesignerActionManagerView::modelAttached(Model *model) void DesignerActionManagerView::modelAttached(Model *model)
......
...@@ -229,6 +229,9 @@ static void hideToolButtons(QList<QToolButton*> &buttons) ...@@ -229,6 +229,9 @@ static void hideToolButtons(QList<QToolButton*> &buttons)
void DesignModeWidget::setup() void DesignModeWidget::setup()
{ {
viewManager().designerActionManager().createDefaultDesignerActions();
viewManager().designerActionManager().polishActions();
QList<Core::INavigationWidgetFactory *> factories = QList<Core::INavigationWidgetFactory *> factories =
ExtensionSystem::PluginManager::getObjects<Core::INavigationWidgetFactory>(); ExtensionSystem::PluginManager::getObjects<Core::INavigationWidgetFactory>();
......
...@@ -286,8 +286,6 @@ void QmlDesignerPlugin::integrateIntoQtCreator(QWidget *modeWidget) ...@@ -286,8 +286,6 @@ void QmlDesignerPlugin::integrateIntoQtCreator(QWidget *modeWidget)
} }
} }
}); });
d->viewManager.designerActionManager().polishActions();
} }
void QmlDesignerPlugin::showDesigner() void QmlDesignerPlugin::showDesigner()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment