From 85b7d34ea80019c8d2e37c100c81ae26facfda9c Mon Sep 17 00:00:00 2001
From: Ulf Hermann <ulf.hermann@digia.com>
Date: Tue, 25 Mar 2014 16:59:33 +0100
Subject: [PATCH] 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 <christian.stenger@digia.com>
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
---
 src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)
-- 
GitLab