From: sbh Date: Wed, 8 Oct 2014 07:18:43 +0000 (+0400) Subject: Proper update of main menu in object browser's "Activate" part action. X-Git-Tag: V_0.5~110 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=732aa907f9ac42a142f891cc762e13e1f6e41924;p=modules%2Fshaper.git Proper update of main menu in object browser's "Activate" part action. --- diff --git a/src/XGUI/XGUI_Workshop.cpp b/src/XGUI/XGUI_Workshop.cpp index f2e9b9be3..0743931a3 100644 --- a/src/XGUI/XGUI_Workshop.cpp +++ b/src/XGUI/XGUI_Workshop.cpp @@ -341,10 +341,10 @@ void XGUI_Workshop::processEvent(const boost::shared_ptr& theMes } } else if (theMessage->eventID() == Events_Loop::loop()->eventByName("CurrentDocumentChanged")) { + myActionsMgr->update(); // Find and Activate active part if (myPartActivating) return; - myActionsMgr->update(); SessionPtr aMgr = ModelAPI_Session::get(); DocumentPtr aActiveDoc = aMgr->activeDocument(); DocumentPtr aDoc = aMgr->moduleDocument();