Skip to content
Snippets Groups Projects
Commit 4432d2fc authored by Matthew Dawson's avatar Matthew Dawson
Browse files

Reattach the gui to data as its supposed to happen now.

git-svn-id: https://groke.mcmaster.ca/svn/grad/colin/branches/TableTool_refactor@8690 57e6efec-57d4-0310-aeb1-a6c144bb1a8b
parent 3b6f2648
No related branches found
No related tags found
No related merge requests found
...@@ -40,8 +40,7 @@ switch Action, ...@@ -40,8 +40,7 @@ switch Action,
file = varargin{2}; file = varargin{2};
try try
data = importdata(file); data = importdata(file);
gui = GUI([],0); gui = GUI(data, [],0);
gui.setData(data);
gui.init(); gui.init();
catch exception catch exception
msgbox(exception.identifier); msgbox(exception.identifier);
...@@ -126,12 +125,11 @@ else ...@@ -126,12 +125,11 @@ else
end end
if mode == 1 if mode == 1
gui = GUI(blockHandleTTTopMask,1); gui = GUI(data, blockHandleTTTopMask,1);
elseif mode == 0 elseif mode == 0
gui = GUI([],0); gui = GUI(data, [],0);
end end
gui.setData(data);
gui.init(); gui.init();
if(mode == 1) if(mode == 1)
set_param(blockHandleTTTopMask,'UserData',data); set_param(blockHandleTTTopMask,'UserData',data);
......
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