Debugger: Fix "attach to QML port"

In this case we don't get any application output / message
telling us that the server is waiting, so let's try to connect
directly.

This is a regression introduced in commit 742019e301

Change-Id: I85d9f846c72e8b227dae5d6e847ab9366a34e2cc
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
This commit is contained in:
Kai Koehne
2012-02-27 10:04:34 +01:00
parent 44c14962b3
commit d75d70c552

View File

@@ -412,7 +412,9 @@ void QmlEngine::runEngine()
QTC_ASSERT(state() == EngineRunRequested, qDebug() << state());
if (!isSlaveEngine()) {
if (startParameters().startMode != AttachToRemoteServer)
if (startParameters().startMode == AttachToRemoteServer)
beginConnection();
else
startApplicationLauncher();
}
}