diff options
author | Ulf Hermann <[email protected]> | 2014-03-25 16:59:33 +0100 |
---|---|---|
committer | Ulf Hermann <[email protected]> | 2014-03-31 10:34:44 +0200 |
commit | 85b7d34ea80019c8d2e37c100c81ae26facfda9c (patch) | |
tree | 2926a8b4fc91838f703ce7fddf941cf24925b1fa /src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp | |
parent | 7d23ee717d9eb42acac2aa0b9fe4231d76e9b9fd (diff) |
QmlProfiler: When clearing, set the trace duration to 0
That is what the code in the main view expects of an empty trace and
it's also logically more coherent.
Task-number: QTCREATORBUG-11833
Change-Id: I78b90ca5332bfb004cabbb32c4eb3e7e83fd7187
Reviewed-by: Christian Stenger <[email protected]>
Reviewed-by: Kai Koehne <[email protected]>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp')
-rw-r--r-- | src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp b/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp index 3f9ec65268f..17b894647ed 100644 --- a/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp +++ b/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp @@ -113,7 +113,7 @@ qint64 QmlProfilerTraceTime::duration() const void QmlProfilerTraceTime::clear() { m_startTime = -1; - m_endTime = 0; + m_endTime = -1; } void QmlProfilerTraceTime::setStartTime(qint64 time) |