Commit 0196de33 authored by hjk's avatar hjk Committed by Eike Ziller

Debugger: Avoid proxy action loop

Use the real start action data to Initialize the toolbar start proxy
action with the real action, not the menu action.

Change-Id: I498ba0069e9f259f90122eb6378c79f08e4d24d1
Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
parent 54febaef
......@@ -1527,10 +1527,10 @@ bool DebuggerPluginPrivate::initialize(const QStringList &arguments,
cmd->setAttribute(Command::CA_UpdateText);
mstart->addAction(cmd, CC::G_DEFAULT_ONE);
m_visibleStartAction = new ProxyAction(this);
m_visibleStartAction->initialize(cmd->action());
m_visibleStartAction->initialize(m_startAction);
m_visibleStartAction->setAttribute(ProxyAction::UpdateText);
m_visibleStartAction->setAttribute(ProxyAction::UpdateIcon);
m_visibleStartAction->setAction(cmd->action());
m_visibleStartAction->setAction(m_startAction);
ModeManager::addAction(m_visibleStartAction, Constants::P_ACTION_DEBUG);
......
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