diff --git a/src/plugins/debugger/debuggerrunner.cpp b/src/plugins/debugger/debuggerrunner.cpp
index 19b1396789c294d7edcb3f8cc53d486790ed254e..0262e0f3a52fe9a4acf01a19fe01cb1e103de387 100644
--- a/src/plugins/debugger/debuggerrunner.cpp
+++ b/src/plugins/debugger/debuggerrunner.cpp
@@ -262,6 +262,7 @@ void DebuggerRunControl::start()
             QErrorMessage *msgBox = new QErrorMessage(debuggerCore()->mainWindow());
             msgBox->setAttribute(Qt::WA_DeleteOnClose);
             msgBox->showMessage(warningMessage);
+            break;
         }
     }