forked from qt-creator/qt-creator
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:
@@ -3862,12 +3862,8 @@ void GdbEngine::handleAdapterStartFailed(const QString &msg, Id settingsIdHint)
|
|||||||
showMessage("ADAPTER START FAILED");
|
showMessage("ADAPTER START FAILED");
|
||||||
if (!msg.isEmpty() && !Internal::isTestRun()) {
|
if (!msg.isEmpty() && !Internal::isTestRun()) {
|
||||||
const QString title = tr("Adapter Start Failed");
|
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();
|
notifyEngineSetupFailed();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user