QmlProfiler: Fix logic when timeout-connecting to QML port

The timeout signal doesn't contain the QML port but we might know it if
we've explicitly set it. The previous logic makes no sense at all.

Change-Id: I820255e492e919ee916a5f859d7809a6c5233399
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
Ulf Hermann
2014-03-13 14:46:58 +01:00
parent e2ac45bf7e
commit 08eaa92085

View File

@@ -258,7 +258,9 @@ void QmlProfilerRunControl::processIsRunning(quint16 port)
{
d->m_noDebugOutputTimer.stop();
if (port > 0 && startParameters().analyzerPort != 0)
if (port == 0)
port = startParameters().analyzerPort;
if (port != 0)
emit processRunning(port);
}