debugger: move state change to EngineStarting into the base class

This commit is contained in:
hjk
2010-07-08 13:28:22 +02:00
parent c8fae11222
commit eab55aac6b
7 changed files with 7 additions and 9 deletions

View File

@@ -231,9 +231,8 @@ void ScriptEngine::exitDebugger()
void ScriptEngine::startDebugger()
{
QTC_ASSERT(state() == EngineStarting, qDebug() << state());
showMessage(_("STARTING SCRIPT DEBUGGER"), LogMisc);
QTC_ASSERT(state() == DebuggerNotReady, setState(DebuggerNotReady));
setState(EngineStarting);
if (m_scriptEngine.isNull())
m_scriptEngine = Core::ICore::instance()->scriptManager()->scriptEngine();
if (!m_scriptAgent)