void XGUI_ObjectsBrowser::onContextMenuRequested(QContextMenuEvent* theEvent)
{
myObjectsList = myTreeView->selectedObjects();
- bool toEnable = myObjectsList.size() > 0;
+ bool toEnable = myObjectsList.size() == 1;
foreach(QAction* aCmd, actions())
{
aCmd->setEnabled(toEnable);
}
//***************************************************
-void XGUI_ObjectsBrowser::processEvent(const Events_Message* theMessage)
+void XGUI_ObjectsBrowser::processEvent(const boost::shared_ptr<Events_Message>& theMessage)
{
myDocModel->processEvent(theMessage);
}