From 5e29374f87aadc132180cb64568d5f9fbee308d3 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Thu, 29 Oct 2009 11:20:21 +0100 Subject: [PATCH] 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. --- src/plugins/debugger/gdb/gdbengine.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index 790f080722e..c5189b6ab23 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -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);