Debugger: Allow continuing debugging when switching projects.

Change-Id: If99fc8dc7697eaef50ea7bf7656c0ce788201679
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
hjk
2013-06-07 12:52:24 +02:00
parent 00ac1f8918
commit 9155e14db2

View File

@@ -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. // No corresponding debugger found. So we are ready to start one.
m_interruptAction->setEnabled(false); m_interruptAction->setEnabled(false);
m_continueAction->setEnabled(false); m_continueAction->setEnabled(false);