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 <hjk@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2015-06-18 16:34:54 +02:00
committed by hjk
parent bb6e697006
commit eaf9caa6f9

View File

@@ -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 ...");