From e45c6ebe4b2c7134f2ff257cca8fc38810000296 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Wed, 9 Aug 2017 15:54:36 +0200 Subject: [PATCH] QmlProfiler: Stop the recording timer when the time label is destroyed Writing to the label is all it does, and that crashes if the label is gone. Change-Id: I23bbbe0c46603a8de91143ee6167cb404c1b0004 Reviewed-by: hjk --- src/plugins/qmlprofiler/qmlprofilertool.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/qmlprofiler/qmlprofilertool.cpp b/src/plugins/qmlprofiler/qmlprofilertool.cpp index e246bf885c0..e4c8096242d 100644 --- a/src/plugins/qmlprofiler/qmlprofilertool.cpp +++ b/src/plugins/qmlprofiler/qmlprofilertool.cpp @@ -185,6 +185,7 @@ QmlProfilerTool::QmlProfilerTool(QObject *parent) d->m_recordingTimer.setInterval(100); connect(&d->m_recordingTimer, &QTimer::timeout, this, &QmlProfilerTool::updateTimeDisplay); + connect(d->m_timeLabel, &QObject::destroyed, &d->m_recordingTimer, &QTimer::stop); d->m_viewContainer = new QmlProfilerViewManager(this, d->m_profilerModelManager, d->m_profilerState);