Commit 0164b85b authored by Lukas Aspöck's avatar Lukas Aspöck

preventing gui error message when initialization dialog of impedance gui is closed by user

parent fd76cc89
......@@ -136,15 +136,16 @@ h.pb_cancel = uicontrol('style', 'pushbutton', defaultOptions{:}, 'position', [0
gData.h = h;
gData.tubeSetupData = tubeSetupData;
guidata(h.fgh, gData)
updateFields(gData.h.pu_tubeName)
uiwait(h.fgh)
gData = guidata(h.fgh);
close(h.fgh)
guioutput = gData.output;
if ishandle(h.fgh)
gData = guidata(h.fgh);
close(h.fgh)
guioutput = gData.output;
else
guioutput = [];
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment