DAP: Fix dap engine selection with the translated strings

Change-Id: I051c1f7e9776922a98f7c54676c237c63984050d
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Artem Sokolovskii
2023-09-29 14:50:58 +02:00
parent 6cd2e6de0c
commit 9af8ecd935
2 changed files with 24 additions and 30 deletions

View File

@@ -481,14 +481,10 @@ void DebuggerRunTool::start()
runControl()->setDisplayName(m_runParameters.displayName);
m_engine = createDapEngine(runControl()->runMode());
if (!m_engine) {
if (runControl()->runMode() == ProjectExplorer::Constants::DAP_CMAKE_DEBUG_RUN_MODE)
m_engine = createDapEngine(runControl()->runMode());
else if (runControl()->runMode() == ProjectExplorer::Constants::DAP_GDB_DEBUG_RUN_MODE)
m_engine = createDapEngine(runControl()->runMode());
else if (runControl()->runMode() == ProjectExplorer::Constants::DAP_PY_DEBUG_RUN_MODE)
m_engine = createDapEngine(runControl()->runMode());
else if (m_runParameters.isCppDebugging()) {
if (m_runParameters.isCppDebugging()) {
switch (m_runParameters.cppEngineType) {
case GdbEngineType:
m_engine = createGdbEngine();