From: mzn Date: Fri, 16 Sep 2005 13:30:59 +0000 (+0000) Subject: Fix for PAL8920( After study restore, SMESH can't use a shape from GEOM without an... X-Git-Tag: V2_2_6~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4a0e350c11823dee5c0179cc0adbef860073ad19;p=modules%2Fsmesh.git Fix for PAL8920( After study restore, SMESH can't use a shape from GEOM without an explicit activation of GEOM ). --- diff --git a/src/SMESHGUI/SMESHGUI.cxx b/src/SMESHGUI/SMESHGUI.cxx index 798cb8d19..b0cd46321 100644 --- a/src/SMESHGUI/SMESHGUI.cxx +++ b/src/SMESHGUI/SMESHGUI.cxx @@ -1007,6 +1007,9 @@ bool SMESHGUI::ActiveStudyChanged(QAD_Desktop* parent) SMESH::UpdateSelectionProp(); } MESSAGE("SMESHGUI::activeStudyChanged done."); + + parent->loadComponentData("GEOM"); + return true; } @@ -2329,6 +2332,9 @@ bool SMESHGUI::SetSettings(QAD_Desktop * parent) parent->menuBar()->setItemEnabled(111, false); // IMPORT DAT //parent->menuBar()->setItemEnabled(112, false); // IMPORT UNV + /* Load geom data*/ + parent->loadComponentData("GEOM"); + return true; }