forked from qt-creator/qt-creator
Debugger: Avoid 'start debugging' action being enabled why debugging
Don't let updateDebugActions() (triggered e.g. by project changes) mess with the state fo the Start Debugger, Step, Next actions while an engine is running. Change-Id: I08ee20c70f9ff712f928f8ba04ac3d60d5669f11 Task-number: QTCREATORBUG-6290 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -2241,6 +2241,10 @@ void DebuggerPluginPrivate::updateState(DebuggerEngine *engine)
|
||||
|
||||
void DebuggerPluginPrivate::updateDebugActions()
|
||||
{
|
||||
//if we're currently debugging the actions are controlled by engine
|
||||
if (m_currentEngine->state() != DebuggerNotReady)
|
||||
return;
|
||||
|
||||
ProjectExplorerPlugin *pe = ProjectExplorerPlugin::instance();
|
||||
Project *project = pe->startupProject();
|
||||
const QString debugMode = _(Constants::DEBUGMODE);
|
||||
|
||||
Reference in New Issue
Block a user