diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index aada6367c99..285dad73769 100644 --- a/src/plugins/debugger/debuggerplugin.cpp +++ b/src/plugins/debugger/debuggerplugin.cpp @@ -1547,6 +1547,11 @@ void DebuggerPluginPrivate::onCurrentProjectChanged(Project *project) } } } + + // If we have a running debugger, don't touch it. + if (m_snapshotHandler->size()) + return; + // No corresponding debugger found. So we are ready to start one. m_interruptAction->setEnabled(false); m_continueAction->setEnabled(false);