aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler/localqmlprofilerrunner.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2016-07-04 17:40:44 +0200
committerUlf Hermann <ulf.hermann@qt.io>2016-07-05 08:08:22 +0000
commit6683597e3ad810bbbb5700d7ef7335c7bde6d4f3 (patch)
tree3048c290ebb0a0b61d20f169576463bccabac2c1 /src/plugins/qmlprofiler/localqmlprofilerrunner.cpp
parentf7924a23b24fdfe5171e662b70f1875a03094eba (diff)
QmlProfiler: Assert for sane configuration in local runner
Change-Id: Idec9531019b1b95bbacf5d5bd5ea68168e28e895 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src/plugins/qmlprofiler/localqmlprofilerrunner.cpp')
-rw-r--r--src/plugins/qmlprofiler/localqmlprofilerrunner.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/qmlprofiler/localqmlprofilerrunner.cpp b/src/plugins/qmlprofiler/localqmlprofilerrunner.cpp
index fed76e6a33..3be605542e 100644
--- a/src/plugins/qmlprofiler/localqmlprofilerrunner.cpp
+++ b/src/plugins/qmlprofiler/localqmlprofilerrunner.cpp
@@ -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,