From 2d631c7a0b7ad94ff5c8c99dbc797a66346b51d8 Mon Sep 17 00:00:00 2001 From: hjk Date: Thu, 30 Aug 2018 09:10:24 +0200 Subject: [PATCH] Debugger: simplify GdbEngine::handleAdapterStartFailed Both branches did effectively the same. Change-Id: Iebfc3ace62acd3bd6f73fb1ee8573d8e884237c3 Reviewed-by: Christian Stenger --- src/plugins/debugger/gdb/gdbengine.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index 52a6f9a4b3a..42a218b4d2d 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -3862,11 +3862,7 @@ void GdbEngine::handleAdapterStartFailed(const QString &msg, Id settingsIdHint) showMessage("ADAPTER START FAILED"); if (!msg.isEmpty() && !Internal::isTestRun()) { const QString title = tr("Adapter Start Failed"); - if (!settingsIdHint.isValid()) { - ICore::showWarningWithOptions(title, msg); - } else { - ICore::showWarningWithOptions(title, msg, QString(), settingsIdHint); - } + ICore::showWarningWithOptions(title, msg, QString(), settingsIdHint); } notifyEngineSetupFailed(); }