static const Events_ID anEvent = Events_Loop::eventByName(EVENT_GET_DOF_OBJECTS);
ModelAPI_EventCreator::get()->sendUpdated(aCompFeature, anEvent);
Events_Loop::loop()->flush(anEvent);
+ QWidget* aViewPort = myWorkshop->viewer()->activeViewPort();
+ if (aViewPort)
+ aViewPort->setFocus();
}
}
/// processing delete by workshop
XGUI_ObjectsBrowser* aBrowser = XGUI_Tools::workshop(myWorkshop)->objectBrowser();
QWidget* aViewPort = myWorkshop->viewer()->activeViewPort();
- bool isToDeleteObject = true;
+ bool isToDeleteObject = false;
XGUI_Workshop* aWorkshop = XGUI_Tools::workshop(myWorkshop);
XGUI_ContextMenuMgr* aContextMenuMgr = aWorkshop->contextMenuMgr();
if (theObject == aBrowser->treeView()) {