forked from qt-creator/qt-creator
QmlProfiler: Allow QmlProfilerRunner::stop() without profilerState
This can happen because a run control may already initiateStop when in Starting state. Change-Id: Ie872cb1ba5d0ff65eb1c82ff90f9659311e534f4 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -137,7 +137,10 @@ void QmlProfilerRunner::start()
|
||||
|
||||
void QmlProfilerRunner::stop()
|
||||
{
|
||||
QTC_ASSERT(d->m_profilerState, return);
|
||||
if (!d->m_profilerState) {
|
||||
reportStopped();
|
||||
return;
|
||||
}
|
||||
|
||||
switch (d->m_profilerState->currentState()) {
|
||||
case QmlProfilerStateManager::AppRunning:
|
||||
|
||||
Reference in New Issue
Block a user