diff options
author | Jarek Kobus <[email protected]> | 2023-08-29 09:36:24 +0200 |
---|---|---|
committer | Jarek Kobus <[email protected]> | 2023-08-29 07:42:59 +0000 |
commit | e4ab99990e8800004ed27df9357d05866286bf95 (patch) | |
tree | 90268a7d29852af7bf2745953b6f6c9ca1952131 /src/plugins/debugger/debuggerplugin.cpp | |
parent | 47c2d78b6c167a3060ccec7657554a2867ae405b (diff) |
DebuggerPlugin: Fix assert on Creator startup
Add toolbar action to the perspective before calling
setToolButtonStyle(), otherwise the m_toolButton isn't
created yet and the assert is triggered.
Amends d304e82e63447ba9393332cd6e2b919c9c602bfa
Change-Id: Idac207464d8844565c96718ac65a7b820f05d4b7
Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/debugger/debuggerplugin.cpp')
-rw-r--r-- | src/plugins/debugger/debuggerplugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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, |