Commit dedba8c8 authored by hjk's avatar hjk
Browse files

debugger: deactivate debug mode if the last engine exits

Task-number: QTCREATORBUG-2201
parent ae8e57bc
......@@ -2719,11 +2719,6 @@ void DebuggerPlugin::updateState(DebuggerEngine *engine)
d->updateState(engine);
}
void DebuggerPlugin::activatePreviousMode()
{
d->activatePreviousMode();
}
void DebuggerPlugin::activateDebugMode()
{
d->activateDebugMode();
......@@ -2752,6 +2747,8 @@ void DebuggerPlugin::runControlFinished(DebuggerRunControl *runControl)
Q_UNUSED(runControl);
d->m_snapshotHandler->removeSnapshot(runControl);
d->disconnectEngine();
if (d->m_snapshotHandler->size() == 0)
d->activatePreviousMode();
}
DebuggerLanguages DebuggerPlugin::activeLanguages() const
......
......@@ -104,7 +104,6 @@ private:
void resetLocation();
void gotoLocation(const QString &fileName, int lineNumber, bool setMarker);
void activatePreviousMode();
void readSettings();
void writeSettings() const;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment