Skip to content
Snippets Groups Projects
Commit 92b837e1 authored by jacques.grelet_ird.fr's avatar jacques.grelet_ird.fr
Browse files

add uiresume in QuitProgram function to prevent error when main windows is closed

parent fca75ba7
No related branches found
No related tags found
No related merge requests found
......@@ -1078,7 +1078,7 @@ tsg_initialisation(hMainFig, hQcCmenu)
% Callback function run when the Quit menu item is selected
% If the data have been modified and not save, the program
% propose to save the data
% ask to save the data
% --------------------------------------------------------
if strcmp( get( hSaveMenu, 'UserData' ), 'on')
selection = ...
......@@ -1107,9 +1107,16 @@ tsg_initialisation(hMainFig, hQcCmenu)
% ----------------------------------------------------------------
function QuitProgram(hObject, eventdata)
% needed during QC operation if waitbuttonpress is active
% -------------------------------------------------------
uiresume;
% close the main windows
% ----------------------
delete(hMainFig);
% reset Matlab search path to default
% -----------------------------------
rmpath( [DEFAULT_PATH_FILE filesep 'tsg_util'] );
rmpath( [DEFAULT_PATH_FILE filesep 'tsg_data'] );
rmpath( [DEFAULT_PATH_FILE filesep 'tsg_io'] );
......
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