]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Proper update of main menu in object browser's "Activate" part action.
authorsbh <sergey.belash@opencascade.com>
Wed, 8 Oct 2014 07:18:43 +0000 (11:18 +0400)
committersbh <sergey.belash@opencascade.com>
Wed, 8 Oct 2014 07:18:43 +0000 (11:18 +0400)
src/XGUI/XGUI_Workshop.cpp

index f2e9b9be3e68ca0fb7448a033f7fe05c45e2f95a..0743931a307f62300aff0689cf9cf5f475f820be 100644 (file)
@@ -341,10 +341,10 @@ void XGUI_Workshop::processEvent(const boost::shared_ptr<Events_Message>& 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();