summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--facetracknoir/ui.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/facetracknoir/ui.cpp b/facetracknoir/ui.cpp
index d1b8ed43..0a11de42 100644
--- a/facetracknoir/ui.cpp
+++ b/facetracknoir/ui.cpp
@@ -359,12 +359,16 @@ void MainWindow::showProtocolSettings() {
}
void MainWindow::showFilterSettings() {
- auto dialog = mk_dialog<IFilterDialog>(current_filter());
+ if (libs.pFilter != nullptr)
+ {
+ auto dialog = mk_dialog<IFilterDialog>(current_filter());
- if (dialog) {
- pFilterDialog = dialog;
- dialog->register_filter(libs.pFilter.get());
- dialog->show();
+ if (dialog)
+ {
+ pFilterDialog = dialog;
+ dialog->register_filter(libs.pFilter.get());
+ dialog->show();
+ }
}
}