forked from qt-creator/qt-creator
Use Core::Id in ICore::showOptionsDialog
Change-Id: I3865fde2347d687a7dee76dd5ca62db69cc4dd04 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -4700,7 +4700,7 @@ void GdbEngine::startGdb(const QStringList &args)
|
||||
handleGdbStartFailed();
|
||||
handleAdapterStartFailed(
|
||||
msgNoGdbBinaryForToolChain(sp.toolChainAbi),
|
||||
_(Constants::DEBUGGER_COMMON_SETTINGS_ID));
|
||||
Constants::DEBUGGER_COMMON_SETTINGS_ID);
|
||||
return;
|
||||
}
|
||||
QStringList gdbArgs;
|
||||
@@ -4981,13 +4981,13 @@ void GdbEngine::abortDebugger()
|
||||
}
|
||||
|
||||
void GdbEngine::handleAdapterStartFailed(const QString &msg,
|
||||
const QString &settingsIdHint)
|
||||
Core::Id settingsIdHint)
|
||||
{
|
||||
QTC_ASSERT(state() == EngineSetupRequested, qDebug() << state());
|
||||
showMessage(_("ADAPTER START FAILED"));
|
||||
if (!msg.isEmpty()) {
|
||||
const QString title = tr("Adapter start failed");
|
||||
if (settingsIdHint.isEmpty()) {
|
||||
if (!settingsIdHint.isValid()) {
|
||||
Core::ICore::showWarningWithOptions(title, msg);
|
||||
} else {
|
||||
Core::ICore::showWarningWithOptions(title, msg, QString(),
|
||||
|
||||
Reference in New Issue
Block a user