cabana: fix crash when switching dbc file (#30227)

fix crash when switching dbc file
This commit is contained in:
Dean Lee
2023-10-13 02:09:17 +08:00
committed by GitHub
parent e030a701fa
commit 47813ae8b5
+1 -2
View File
@@ -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() {