forked from qt-creator/qt-creator
QmlProfiler: assert that connections are AnalyzerConnections
... before accessing them as AnalyzerConnection Change-Id: I6f6111ca3b0dede93ac85fbcb5ffbfcf3c7b19aa Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -251,8 +251,10 @@ void QmlProfilerRunControl::processIsRunning(Utils::Port port)
|
||||
{
|
||||
d->m_noDebugOutputTimer.stop();
|
||||
|
||||
if (!port.isValid())
|
||||
if (!port.isValid()) {
|
||||
QTC_ASSERT(connection().is<AnalyzerConnection>(), return);
|
||||
port = connection().as<AnalyzerConnection>().analyzerPort;
|
||||
}
|
||||
if (port.isValid())
|
||||
emit processRunning(port);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user