diff --git a/src/nqrduck_measurement/controller.py b/src/nqrduck_measurement/controller.py index 1c61f93..16b2c3c 100644 --- a/src/nqrduck_measurement/controller.py +++ b/src/nqrduck_measurement/controller.py @@ -215,8 +215,11 @@ class MeasurementController(ModuleController): dialog = Apodization(measurement, parent=self.module.view) result = dialog.exec() - if result: - function = dialog.get_function() + logger.debug("Dialog result: %s", result) + if not result: + return + + function = dialog.get_function() logger.debug("Apodization function: %s", function) diff --git a/src/nqrduck_measurement/signalprocessing_options.py b/src/nqrduck_measurement/signalprocessing_options.py index 25efa2b..be25fc0 100644 --- a/src/nqrduck_measurement/signalprocessing_options.py +++ b/src/nqrduck_measurement/signalprocessing_options.py @@ -45,7 +45,7 @@ class Apodization(DuckFormBuilder): self.duration = (self.measurement.tdx[-1] - self.measurement.tdx[0]) * 1e-6 function_selection_field = DuckFormFunctionSelectionField( - False, False, functions, self.duration, parent=parent, default_function=0 + text=None, tooltip=None, functions=functions, duration=self.duration, parent=parent, default_function=0 ) self.add_field(function_selection_field)