debugger: fix startup sequence in scriptengine

This commit is contained in:
hjk
2010-07-08 16:06:03 +02:00
parent 6fff4b4fe9
commit f2c7d33fa6

View File

@@ -246,7 +246,7 @@ void ScriptEngine::startEngine()
m_stopOnNextLine = false;
m_scriptEngine->abortEvaluation();
setState(EngineStarted);
notifyEngineStarted();
setState(InferiorStarting);
m_scriptFileName = QFileInfo(startParameters().executable).absoluteFilePath();
@@ -258,7 +258,6 @@ void ScriptEngine::startEngine()
notifyEngineStartFailed();
return;
}
notifyEngineStarted();
QTextStream stream(&scriptFile);
m_scriptContents = stream.readAll();
scriptFile.close();