From 7b198ea3ce738a65f8385de0fb055cbe56ae2074 Mon Sep 17 00:00:00 2001 From: hjk Date: Thu, 15 Feb 2024 18:07:38 +0100 Subject: [PATCH] Debugger: Select C++ debugger if there is nothing else selected We want one-or-more debuggers enabled. This was accidentally not done if the python debugger was the last one to unselect. Change-Id: I1bcdb43a66dc110dc213eba0db079e6d02c00170 Reviewed-by: Jarek Kobus --- src/plugins/debugger/debuggerrunconfigurationaspect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/debugger/debuggerrunconfigurationaspect.cpp b/src/plugins/debugger/debuggerrunconfigurationaspect.cpp index 1b44afd821b..53eaab1df9c 100644 --- a/src/plugins/debugger/debuggerrunconfigurationaspect.cpp +++ b/src/plugins/debugger/debuggerrunconfigurationaspect.cpp @@ -128,7 +128,7 @@ DebuggerRunConfigurationAspect::DebuggerRunConfigurationAspect(Target *target) if (Utils::allOf({&m_cppAspect, &m_qmlAspect, &m_pythonAspect}, &isDisabled)) m_cppAspect.setValue(TriState::Default); }); - connect(&m_qmlAspect, &TriStateAspect::changed, this, [this] { + connect(&m_pythonAspect, &TriStateAspect::changed, this, [this] { if (Utils::allOf({&m_cppAspect, &m_qmlAspect, &m_pythonAspect}, &isDisabled)) m_cppAspect.setValue(TriState::Default); });