From eaf9caa6f9ed5aa46fccf2c8d5547e6f7bfa56f6 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Thu, 18 Jun 2015 16:34:54 +0200 Subject: [PATCH] QmlProfiler: Drop redundant checks for useStartupProject Those were misusing the flag to distinguish between local and remote startup and that was unnecessary as the LocalQmlProfilerRunner is only instantiated for local startup anyway. Change-Id: I030931c9db9e8482199e4fbd04665a6c973b67f8 Reviewed-by: hjk --- src/plugins/qmlprofiler/localqmlprofilerrunner.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/plugins/qmlprofiler/localqmlprofilerrunner.cpp b/src/plugins/qmlprofiler/localqmlprofilerrunner.cpp index 61cde90b2ac..30d1695c10c 100644 --- a/src/plugins/qmlprofiler/localqmlprofilerrunner.cpp +++ b/src/plugins/qmlprofiler/localqmlprofilerrunner.cpp @@ -119,9 +119,6 @@ LocalQmlProfilerRunner::~LocalQmlProfilerRunner() void LocalQmlProfilerRunner::start() { - if (!m_engine->startParameters().useStartupProject) - return; - QString arguments = QString::fromLatin1("-qmljsdebugger=port:%1,block").arg(m_configuration.port); if (!m_configuration.executableArguments.isEmpty()) @@ -157,9 +154,6 @@ void LocalQmlProfilerRunner::spontaneousStop(int exitCode, QProcess::ExitStatus void LocalQmlProfilerRunner::stop() { - if (!m_engine->startParameters().useStartupProject) - return; - if (QmlProfilerPlugin::debugOutput) qWarning("QmlProfiler: Stopping application ...");