From 9155e14db28e66642fd8715d763c6e10179f1965 Mon Sep 17 00:00:00 2001 From: hjk Date: Fri, 7 Jun 2013 12:52:24 +0200 Subject: [PATCH] Debugger: Allow continuing debugging when switching projects. Change-Id: If99fc8dc7697eaef50ea7bf7656c0ce788201679 Reviewed-by: hjk --- src/plugins/debugger/debuggerplugin.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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);