From a2a07e4587fe81778c5d919ed096e08c71c43f90 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Thu, 14 Apr 2016 10:26:02 +0000
Subject: [PATCH] don't delete widgets in rebuildTree in import physical
 groups.

(This is just a band-aid to avoid crashes when updating widgets interactively. We should really avoid rebulding the tree all the time)
---
 Common/GmshMessage.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Common/GmshMessage.cpp b/Common/GmshMessage.cpp
index f90a2dbd7f..1621cc1eb8 100644
--- a/Common/GmshMessage.cpp
+++ b/Common/GmshMessage.cpp
@@ -1239,7 +1239,7 @@ void Msg::ImportPhysicalGroupsInOnelab()
 #if defined(HAVE_FLTK)
     if(FlGui::available()){
       FlGui::instance()->resetVisibility();
-      FlGui::instance()->rebuildTree(true);
+      FlGui::instance()->rebuildTree(false);
     }
 #endif
   }
-- 
GitLab