Added ability to maintain bus and msg filters when clearing frames
This commit is contained in:
@@ -141,6 +141,7 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||
|
||||
connect(ui->cbInterpret, &QAbstractButton::toggled, this, &MainWindow::interpretToggled);
|
||||
connect(ui->cbOverwrite, &QAbstractButton::toggled, this, &MainWindow::overwriteToggled);
|
||||
connect(ui->cbPersistentFilters, &QAbstractButton::toggled, this, &MainWindow::presistentFiltersToggled);
|
||||
connect(ui->listFilters, &QListWidget::itemChanged, this, &MainWindow::filterListItemChanged);
|
||||
connect(ui->listBusFilters, &QListWidget::itemChanged, this, &MainWindow::busFilterListItemChanged);
|
||||
|
||||
@@ -616,6 +617,18 @@ void MainWindow::overwriteToggled(bool state)
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::presistentFiltersToggled(bool state)
|
||||
{
|
||||
if (state)
|
||||
{
|
||||
model->setClearMode(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
model->setClearMode(false);
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::updateFilterList()
|
||||
{
|
||||
if (model == nullptr) return;
|
||||
|
||||
Reference in New Issue
Block a user