QmlDebugger: reseting internal state on engine setup

reviewed-by: Friedemann Kleint
This commit is contained in:
Christiaan Janssen
2011-02-08 16:17:13 +01:00
parent ce5b57c8a5
commit 9ccd03ba01
2 changed files with 3 additions and 0 deletions

View File

@@ -346,6 +346,7 @@ void QmlEngine::shutdownEngine()
void QmlEngine::setupEngine()
{
d->m_ping = 0;
d->m_adapter.setMaxConnectionAttempts(MaxConnectionAttempts);
d->m_adapter.setConnectionAttemptInterval(ConnectionAttemptDefaultInterval);
connect(&d->m_adapter, SIGNAL(connectionError(QAbstractSocket::SocketError)),