diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index eb09b70d002..42c5244cd57 100644 --- a/src/plugins/debugger/debuggerplugin.cpp +++ b/src/plugins/debugger/debuggerplugin.cpp @@ -1273,6 +1273,7 @@ void DebuggerPluginPrivate::createDapDebuggerPerspective(QWidget *globalLogWindo } }); + m_perspectiveDap.addToolBarAction(&m_startDapAction); m_startDapAction.setToolTip(Tr::tr("Start DAP Debugging")); m_startDapAction.setText(Tr::tr("Start DAP Debugging")); m_startDapAction.setEnabled(true); @@ -1281,7 +1282,6 @@ void DebuggerPluginPrivate::createDapDebuggerPerspective(QWidget *globalLogWindo m_startDapAction.setVisible(true); m_perspectiveDap.useSubPerspectiveSwitcher(EngineManager::dapEngineChooser()); - m_perspectiveDap.addToolBarAction(&m_startDapAction); m_perspectiveDap.addWindow(engineManagerWindow, Perspective::SplitVertical, nullptr); m_perspectiveDap.addWindow(breakpointManagerWindow,