diff --git a/src/plugins/debugger/qml/qmlcppengine.cpp b/src/plugins/debugger/qml/qmlcppengine.cpp
index 90237fab68ab4cb31f6b71c93499593f83db4c21..28179ba96be04a767a47f30e3fbc142441fb02e6 100644
--- a/src/plugins/debugger/qml/qmlcppengine.cpp
+++ b/src/plugins/debugger/qml/qmlcppengine.cpp
@@ -761,9 +761,6 @@ void QmlCppEngine::slaveEngineStateChanged
                 QTC_ASSERT(state() == InferiorRunRequested, qDebug() << state());
                 notifyInferiorRunOk();
             }
-        } else if (newState == EngineRunFailed) {
-            if (d->m_cppEngine->targetState() != DebuggerFinished)
-                d->m_cppEngine->quitDebugger();
         }
     }
 }