Skip to content

Commit 4250f30

Browse files
author
Manuel Berning
committed
Fix for earlier MATLAB versions? (@pl, please test)
1 parent b87df4d commit 4250f30

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

installer.m

+9-4
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,15 @@ function pushbutton_OK_Callback(hObject, eventdata, handles)
8989
% hObject handle to pushbutton_OK (see GCBO)
9090
% eventdata reserved - to be defined in a future version of MATLAB
9191
% handles structure with handles and user data (see GUIDATA)
92-
assignin('base', 'dataDirectory', [handles.edit_DataDirectory.String filesep]);
93-
assignin('base', 'outputDirectory', [handles.edit_OutputDirectory.String filesep]);
94-
assignin('base', 'jobManagerName', handles.listbox1.String{handles.listbox1.Value});
95-
assignin('base', 'chosenCodebase', handles.uibuttongroup2.SelectedObject.String);
92+
93+
dD = get(handles.edit_DataDirectory, 'String');
94+
oD = get(handles.edit_OutputDirectory, 'String');
95+
jMN = get(handles.listbox1, 'String');
96+
cC = get(handles.uibuttongroup2.SelectedObject, 'String');
97+
assignin('base', 'dataDirectory', [dD filesep]);
98+
assignin('base', 'outputDirectory', [oD filesep]);
99+
assignin('base', 'jobManagerName', jMN{get(handles.listbox1, 'Value')});
100+
assignin('base', 'chosenCodebase', cC);
96101
delete(handles.output);
97102

98103
% --- Executes on button press in pushbutton_DataDirectory.

0 commit comments

Comments
 (0)