ignore inferiorStartFailed after adapterCrashed

technically, it would be cleaner to handle that in the adapters,
but it is a lot of duplicated code without any gain.
This commit is contained in:
Oswald Buddenhagen
2009-10-29 11:20:21 +01:00
parent 7713fc514b
commit 5e29374f87

View File

@@ -4305,6 +4305,8 @@ void GdbEngine::startInferiorPhase2()
void GdbEngine::handleInferiorStartFailed(const QString &msg)
{
if (state() == AdapterStartFailed)
return; // Adapter crashed meanwhile, so this notification is meaningless.
debugMessage(_("INFERIOR START FAILED"));
showMessageBox(QMessageBox::Critical, tr("Inferior start failed"), msg);
setState(InferiorStartFailed);