Debugger: simplify GdbEngine::handleAdapterStartFailed

Both branches did effectively the same.

Change-Id: Iebfc3ace62acd3bd6f73fb1ee8573d8e884237c3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2018-08-30 09:10:24 +02:00
parent 97b7dce264
commit 2d631c7a0b

View File

@@ -3862,12 +3862,8 @@ 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);
}
}
notifyEngineSetupFailed();
}