Skip to content
Snippets Groups Projects
Commit 73d4b8a5 authored by leprob001's avatar leprob001
Browse files

Small bugfixes to dropSelection and the new selection method.

parent 12f5c455
No related branches found
No related tags found
No related merge requests found
309 310
\ No newline at end of file \ No newline at end of file
...@@ -11,8 +11,10 @@ end ...@@ -11,8 +11,10 @@ end
result = false; result = false;
if artoa.controller.edit.dataPointsSelected(artoaWorkspace.editTimeOfArrival) if artoa.controller.edit.dataPointsSelected(artoaWorkspace.editTimeOfArrival)
if ~pForce || strcmp(questdlg('Reset current selection?', 'Confirmation', 'Yes', 'Cancel', 'Cancel'), 'Cancel') if ~pForce
return; if strcmp(questdlg('Reset current selection?', 'Confirmation', 'Yes', 'Cancel', 'Cancel'), 'Cancel')
return;
end
end end
% reset the line and all required fields % reset the line and all required fields
[artoaGui.editTimeOfArrival, artoaWorkspace.editTimeOfArrival] = artoa.controller.edit.clearSelection(artoaGui.editTimeOfArrival, artoaWorkspace.editTimeOfArrival); [artoaGui.editTimeOfArrival, artoaWorkspace.editTimeOfArrival] = artoa.controller.edit.clearSelection(artoaGui.editTimeOfArrival, artoaWorkspace.editTimeOfArrival);
......
...@@ -42,7 +42,7 @@ values = inputdlg(values); ...@@ -42,7 +42,7 @@ values = inputdlg(values);
values = str2double(values); values = str2double(values);
% validity check % validity check
if any(isnan(values)) if any(isnan(values)) || isempty(values)
% force drop selection % force drop selection
artoa.controller.edit.timeOfArrival.dropSelection(true); artoa.controller.edit.timeOfArrival.dropSelection(true);
warndlg('One or more input values could not be converted to double. Please try again', 'Input error!'); warndlg('One or more input values could not be converted to double. Please try again', 'Input error!');
......
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