From 4a0e350c11823dee5c0179cc0adbef860073ad19 Mon Sep 17 00:00:00 2001 From: mzn Date: Fri, 16 Sep 2005 13:30:59 +0000 Subject: [PATCH] Fix for PAL8920( After study restore, SMESH can't use a shape from GEOM without an explicit activation of GEOM ). --- src/SMESHGUI/SMESHGUI.cxx | 6 ++++++ 1 file changed, 6 insertions(+) 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; }