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

@@ -228,8 +228,7 @@ const int serverPort = 3768;
void QmlEngine::startDebugger()
{
QTC_ASSERT(state() == DebuggerNotReady, setState(DebuggerNotReady));
setState(EngineStarting);
QTC_ASSERT(state() == EngineStarting, qDebug() << state());
const DebuggerStartParameters &sp = startParameters();
const int pos = sp.remoteChannel.indexOf(QLatin1Char(':'));
const QString host = sp.remoteChannel.left(pos);