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:
Ulf Hermann
2014-02-13 12:53:21 +01:00
parent 70aa948f0c
commit f3267b8893

View File

@@ -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