Skip to content
Snippets Groups Projects
Verified Commit 5537165d authored by Houtan Bastani's avatar Houtan Bastani
Browse files

fix up save project

parent 9eb7853c
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ function gui_save_project(hObject, oid) ...@@ -12,7 +12,7 @@ function gui_save_project(hObject, oid)
% SPECIAL REQUIREMENTS % SPECIAL REQUIREMENTS
% none % none
% Copyright (C) 2003-2018 Dynare Team % Copyright (C) 2003-2019 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %
...@@ -29,12 +29,14 @@ function gui_save_project(hObject, oid) ...@@ -29,12 +29,14 @@ function gui_save_project(hObject, oid)
% You should have received a copy of the GNU General Public License % You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>. % along with Dynare. If not, see <http://www.gnu.org/licenses/>.
global project_info; global project_info
if(strcmp(oid,'Save')) if strcmp(oid, 'Save')
[tabId,created] = gui_tabs.add_tab(hObject, ['Project: ',project_info.project_name]); tabId = gui_tabs.add_tab(hObject, ['Project: ' project_info.project_name]);
elseif strcmp(oid, 'Save As')
tabId = gui_tabs.add_tab(hObject, 'Save project as...');
else else
[tabId,created] = gui_tabs.add_tab(hObject, 'Save project as...'); error('should''t arrive here');
end end
gui_project(tabId, oid); gui_project(tabId, oid);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment