Commit 08eaa920 authored by Ulf Hermann's avatar Ulf Hermann
Browse files

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: default avatarKai Koehne <kai.koehne@digia.com>
parent e2ac45bf
......@@ -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);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment