forked from qt-creator/qt-creator
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:
@@ -351,9 +351,8 @@ void QmlProfilerTool::finalizeRunControl(QmlProfilerRunner *runWorker)
|
||||
runWorker->registerProfilerStateManager(d->m_profilerState);
|
||||
QmlProfilerClientManager *clientManager = d->m_profilerConnections;
|
||||
|
||||
QTC_ASSERT(runWorker->connection().is<UrlConnection>(), return);
|
||||
// FIXME: Check that there's something sensible in sp.connParams
|
||||
auto serverUrl = runWorker->connection().as<UrlConnection>();
|
||||
auto serverUrl = runWorker->serverUrl();
|
||||
clientManager->setServerUrl(serverUrl);
|
||||
if (!serverUrl.path().isEmpty()) {
|
||||
// That's the local socket case.
|
||||
|
Reference in New Issue
Block a user