Commit 124a3449 authored by Volker Krause's avatar Volker Krause
Browse files

Fix connection lifetime

parent c229beef
......@@ -64,7 +64,7 @@ QtCharts::QChart* TotalAggregator::timelineChart()
m_timelineChart->addAxis(yAxis, Qt::AlignLeft);
updateTimelineChart();
QObject::connect(sourceModel(), &QAbstractItemModel::modelReset, [this]() {
QObject::connect(sourceModel(), &QAbstractItemModel::modelReset, m_timelineChart.get(), [this]() {
updateTimelineChart();
});
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment