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 <jaroslaw.kobus@qt.io>
This commit is contained in:
hjk
2024-02-15 18:07:38 +01:00
parent 8ab6b94c48
commit 7b198ea3ce

View File

@@ -128,7 +128,7 @@ DebuggerRunConfigurationAspect::DebuggerRunConfigurationAspect(Target *target)
if (Utils::allOf({&m_cppAspect, &m_qmlAspect, &m_pythonAspect}, &isDisabled)) if (Utils::allOf({&m_cppAspect, &m_qmlAspect, &m_pythonAspect}, &isDisabled))
m_cppAspect.setValue(TriState::Default); 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)) if (Utils::allOf({&m_cppAspect, &m_qmlAspect, &m_pythonAspect}, &isDisabled))
m_cppAspect.setValue(TriState::Default); m_cppAspect.setValue(TriState::Default);
}); });