forked from qt-creator/qt-creator
Trk: Do not show additional message box when canceled.
This commit is contained in:
@@ -4075,6 +4075,7 @@ void GdbEngine::handleAdapterStartFailed(const QString &msg, const QString &sett
|
|||||||
{
|
{
|
||||||
setState(AdapterStartFailed);
|
setState(AdapterStartFailed);
|
||||||
debugMessage(_("ADAPTER START FAILED"));
|
debugMessage(_("ADAPTER START FAILED"));
|
||||||
|
if (!msg.isEmpty()) {
|
||||||
const QString title = tr("Adapter start failed");
|
const QString title = tr("Adapter start failed");
|
||||||
if (settingsIdHint.isEmpty()) {
|
if (settingsIdHint.isEmpty()) {
|
||||||
Core::ICore::instance()->showWarningWithOptions(title, msg);
|
Core::ICore::instance()->showWarningWithOptions(title, msg);
|
||||||
@@ -4083,6 +4084,7 @@ void GdbEngine::handleAdapterStartFailed(const QString &msg, const QString &sett
|
|||||||
_(Debugger::Constants::DEBUGGER_SETTINGS_CATEGORY),
|
_(Debugger::Constants::DEBUGGER_SETTINGS_CATEGORY),
|
||||||
settingsIdHint);
|
settingsIdHint);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
shutdown();
|
shutdown();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1749,7 +1749,7 @@ bool TrkGdbAdapter::initializeDevice(const QString &remoteChannel, QString *erro
|
|||||||
case trk::PromptStartCommunicationConnected:
|
case trk::PromptStartCommunicationConnected:
|
||||||
break;
|
break;
|
||||||
case trk::PromptStartCommunicationCanceled:
|
case trk::PromptStartCommunicationCanceled:
|
||||||
*errorMessage = tr("Canceled");
|
errorMessage->clear();
|
||||||
return false;
|
return false;
|
||||||
case trk::PromptStartCommunicationError:
|
case trk::PromptStartCommunicationError:
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user