QmlProfiler: Assert for sane configuration in local runner

Change-Id: Idec9531019b1b95bbacf5d5bd5ea68168e28e895
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
Ulf Hermann
2016-07-04 17:40:44 +02:00
parent f7924a23b2
commit 6683597e3a

View File

@@ -83,6 +83,8 @@ LocalQmlProfilerRunner::LocalQmlProfilerRunner(const Configuration &configuratio
void LocalQmlProfilerRunner::start()
{
QTC_ASSERT(!m_configuration.socket.isEmpty() || m_configuration.port.isValid(), return);
StandardRunnable runnable = m_configuration.debuggee;
QString arguments = m_configuration.socket.isEmpty() ?
QmlDebug::qmlDebugTcpArguments(QmlDebug::QmlProfilerServices,