mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-05 16:26:14 +08:00
cabana: fix crash when switching dbc file (#30227)
fix crash when switching dbc file
old-commit-hash: 47813ae8b5
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user