Skip to content
Snippets Groups Projects
Commit 2c29658f authored by Federico Felici's avatar Federico Felici
Browse files

Don't discard changes - errors if unsaved changes

parent 8883ea53
Branches
No related tags found
No related merge requests found
......@@ -134,10 +134,8 @@ classdef SCDclass_algo
dd = obj.getdatadictionary;
ddpath = fullfile(obj.folder,dd);
% Close all open models.
bdclose all
% Close all open data dictionaries
Simulink.data.dictionary.closeAll('-discard');
Simulink.data.dictionary.closeAll;
% Create if not existing already
if isempty(which(ddpath))
fprintf('generating data dictionary %s\n',fullfile(obj.folder,obj.getdatadictionary));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment