forked from qt-creator/qt-creator
QmlProfiler: Don't throw an assert if app is killed while profiling.
Without this you get lines like this on the console: SOFT ASSERT: "m_state == Done || m_state == Empty" in file [...]/qmlprofilermodelmanager.cpp, line 62 Change-Id: Ia3fb98cd5e9fb683e3265d0fd3ed1ca99784270d Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
@@ -58,7 +58,7 @@ void QmlProfilerDataState::setState(QmlProfilerDataState::State state)
|
||||
|
||||
switch (state) {
|
||||
case ClearingData:
|
||||
QTC_ASSERT(m_state == Done || m_state == Empty, /**/);
|
||||
QTC_ASSERT(m_state == Done || m_state == Empty || m_state == AcquiringData, /**/);
|
||||
break;
|
||||
case Empty:
|
||||
// if it's not empty, complain but go on
|
||||
|
Reference in New Issue
Block a user