Skip to content

Commit

Permalink
test if pln.propSeq exists ( bug from example 1 with GUI)
Browse files Browse the repository at this point in the history
  • Loading branch information
amitantony committed Jul 21, 2023
1 parent f497b16 commit da50e91
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions gui/widgets/matRad_PlanWidget.m
Original file line number Diff line number Diff line change
Expand Up @@ -678,12 +678,15 @@


contentPopUp = get(handles.popMenuBioOpt,'String');

ix = find(strcmp(pln.propOpt.bioOptimization,contentPopUp));
set(handles.popMenuBioOpt,'Value',ix);
set(handles.btnRunSequencing,'Value',pln.propSeq.runSequencing);
set(handles.btnRunDAO,'Value',pln.propOpt.runDAO);
if isfield(pln.propSeq, 'sequencingLevel')
if isfield(pln, 'propSeq') && isfield(pln.propSeq, 'sequencingLevel')
set(handles.btnRunSequencing,'Value',pln.propSeq.runSequencing);
set(handles.editSequencingLevel,'String',num2str(pln.propSeq.sequencingLevel));
else
set(handles.btnRunSequencing,'Value', 0 );
end
if isfield (pln.propOpt, 'conf3D')
set(handles.radiobutton3Dconf,'Value',pln.propOpt.conf3D);
Expand Down

0 comments on commit da50e91

Please sign in to comment.