From 4ec199f1c1f4a9305eb454bafc47892d5dd3174c Mon Sep 17 00:00:00 2001 From: Dean Lee Date: Fri, 13 Oct 2023 02:09:17 +0800 Subject: [PATCH] cabana: fix crash when switching dbc file (#30227) fix crash when switching dbc file old-commit-hash: 47813ae8b52050237e6c39314bc0c7338daf7b56 --- tools/cabana/chart/chartswidget.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/cabana/chart/chartswidget.cc b/tools/cabana/chart/chartswidget.cc index 83991d914..347a6037e 100644 --- a/tools/cabana/chart/chartswidget.cc +++ b/tools/cabana/chart/chartswidget.cc @@ -405,16 +405,15 @@ void ChartsWidget::removeAll() { tabbar->removeTab(1); } tab_charts.clear(); - zoomReset(); if (!charts.isEmpty()) { for (auto c : charts) { delete c; } charts.clear(); - updateToolBar(); emit seriesChanged(); } + zoomReset(); } void ChartsWidget::alignCharts() {