Skip to content
Snippets Groups Projects
Commit c945c039 authored by Conor Finn's avatar Conor Finn
Browse files

RE #27188 Fix validation if custom selected then closed

If custom spectra was selected from the dropdown and then the tick box
was deselected, the GUI would still check the validity of the spectrum
numbers. As this was usually empty, the calibration would fail to run.
parent 7ae7fb59
No related branches found
No related tags found
No related merge requests found
......@@ -125,7 +125,7 @@ class CalibrationPresenter(object):
if not self.validate_run_numbers():
create_error_message(self.view, "Check run numbers/path is valid.")
return False
if not self.cropping_widget.is_valid():
if self.view.get_crop_checked() and not self.cropping_widget.is_valid():
create_error_message(self.view, "Check cropping values are valid.")
return False
return True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment