DBC settings and bugfixes

- Changes in DBC file manager are immediately propagated to the main window (frames, filter labeling)
- Prevent DBC file manager from saving settings too often and too early (this also fixes a bug where sometimes the settings of all but the first DBC file are lost)
This commit is contained in:
mjuhanne
2019-08-12 18:29:33 +03:00
parent 6272ba3911
commit cd5fe6da02
4 changed files with 22 additions and 1 deletions
+8
View File
@@ -1029,11 +1029,19 @@ void MainWindow::showFlowViewWindow()
flowViewWindow->show();
}
void MainWindow::DBCSettingsUpdated()
{
updateFilterList();
model->sendRefresh();
}
void MainWindow::showDBCFileWindow()
{
if (!dbcFileWindow)
{
dbcFileWindow = new DBCLoadSaveWindow(model->getListReference());
connect(dbcFileWindow, &DBCLoadSaveWindow::updatedDBCSettings, this, &MainWindow::DBCSettingsUpdated);
}
dbcFileWindow->show();
}