QmlProfiler: Split server url passing from custom startup request

Orthogonal concepts, that only happen to coincide.

Also, make the server directly settable instead of relying
on the runControl's connection().

Change-Id: I2472acafcc50aede2cb6f99421901f0e67531b91
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2017-06-14 10:50:18 +02:00
parent 923c20bd9c
commit 232fb7a425
6 changed files with 29 additions and 18 deletions

View File

@@ -168,7 +168,7 @@ void QmlProfilerClientManager::retryConnect()
{
if (m_server.scheme() == "socket") {
startLocalServer();
} else if (!m_server.host().isEmpty() && m_server.port() > -1) {
} else if (!m_server.host().isEmpty() && m_server.port() > 0) {
disconnectClient();
connectToTcpServer();
} else {