From a74f762de2071e2e008f355ebc39de5696e948d4 Mon Sep 17 00:00:00 2001
From: Houtan Bastani <houtan@dynare.org>
Date: Wed, 24 Apr 2019 15:46:13 +0200
Subject: [PATCH] =?UTF-8?q?model=5Fsettings=20don=E2=80=99t=20need=20to=20?=
 =?UTF-8?q?be=20cleared=20when=20project=20has=20been=20closed?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/dynare_gui.m | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/dynare_gui.m b/src/dynare_gui.m
index a75e724..69029c4 100644
--- a/src/dynare_gui.m
+++ b/src/dynare_gui.m
@@ -109,10 +109,10 @@ if ~isempty(project_info)
         catch
         end
     end
-end
-
-if ~isempty(model_settings)
-    evalin('global', 'clear model_settings')
+else
+    if ~isempty(model_settings)
+        evalin('global', 'clear model_settings')
+    end
 end
 
 gui_set_project_info()
-- 
GitLab