diff --git a/lib/+artoa/+controller/+edit/+offsets/tableSoundsourceOffsetsEdit.m b/lib/+artoa/+controller/+edit/+offsets/tableSoundsourceOffsetsEdit.m index aba5830ac5b967c94ec5322e972cc0d1421e199c..98925ff9372dfbd7c490ca2642c106b3e9578fba 100644 --- a/lib/+artoa/+controller/+edit/+offsets/tableSoundsourceOffsetsEdit.m +++ b/lib/+artoa/+controller/+edit/+offsets/tableSoundsourceOffsetsEdit.m @@ -1,10 +1,24 @@ -function [] = tableSoundsourceOffsetsEdit(~, ~) +function [] = tableSoundsourceOffsetsEdit(~, event) %TABLESOUNDSOURCEOFFSETSEDIT Summary of this function goes here % Detailed explanation goes here global artoaGui artoaWorkspace artoaDataInput; +%% Get data +try + selectedColumn = event.Indices(2); + selectedRow = event.Indices(:, 1); +catch + return; +end + +%% Check if the column that has been edited is locked +if 1 <= selectedColumn & selectedColumn <= 7 + artoa.controller.edit.offsets.updateGui(); + return; +end + %% Save to workspace artoaWorkspace.editOffsets.soundsourceOffsets(:, :) = artoaGui.editOffsets.tableSoundsourceOffsets.Data;