summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2017-08-09 15:54:36 +0200
committerUlf Hermann <ulf.hermann@qt.io>2017-08-09 14:18:28 +0000
commite45c6ebe4b2c7134f2ff257cca8fc38810000296 (patch)
tree623f5b89a0756ec5f7b4b38012a3535085e4d0b2
parentc839e86863b590d7339e6fda745fa940140af694 (diff)
downloadqt-creator-e45c6ebe4b2c7134f2ff257cca8fc38810000296.tar.gz
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 <hjk@qt.io>
-rw-r--r--src/plugins/qmlprofiler/qmlprofilertool.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilertool.cpp b/src/plugins/qmlprofiler/qmlprofilertool.cpp
index e246bf885c..e4c8096242 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);