From fb88414fec29e5b1f72232b6bde3b349ad54a622 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jacob=20St=C3=B8ren?= <jacob.storen@ceetronSolutions.com>
Date: Wed, 12 Aug 2015 10:29:58 +0200
Subject: [PATCH] Reset textfields in Project storing TreeView selection and
 expansion state This avoids an assert, and that selection stat bleeds through
 from one project to next.

---
 ApplicationCode/ProjectDataModel/RimProject.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ApplicationCode/ProjectDataModel/RimProject.cpp b/ApplicationCode/ProjectDataModel/RimProject.cpp
index 9ae0911376..46a9b161e0 100644
--- a/ApplicationCode/ProjectDataModel/RimProject.cpp
+++ b/ApplicationCode/ProjectDataModel/RimProject.cpp
@@ -127,6 +127,8 @@ void RimProject::close()
 
     nextValidCaseId = 0;
     nextValidCaseGroupId = 0;
+    currentModelIndexPath = "";
+    treeViewState = "";
 }