myWorkshop->selector()->clearSelection();
aBrowser->treeView()->clearSelection();
} else {
- aDisp->setSelected(theValues);
- // Synchronise the selection with Object browser
- QObjectPtrList anObjects;
- foreach(ModuleBase_ViewerPrsPtr aVal, theValues) {
- anObjects.append(aVal->object());
- }
- aBrowser->setObjectsSelected(anObjects);
+ myWorkshop->selector()->setSelected(theValues);
}
}
/// processing delete by workshop
XGUI_ObjectsBrowser* aBrowser = XGUI_Tools::workshop(myWorkshop)->objectBrowser();
QWidget* aViewPort = myWorkshop->viewer()->activeViewPort();
- bool isToDeleteObject = false;
+ bool isToDeleteObject = true;
XGUI_Workshop* aWorkshop = XGUI_Tools::workshop(myWorkshop);
XGUI_ContextMenuMgr* aContextMenuMgr = aWorkshop->contextMenuMgr();
if (theObject == aBrowser->treeView()) {
// allow the module to delete objects, do nothing if it has succeed
if (aModule->deleteObjects()) {
updateCommandStatus();
+ myDisplayer->updateViewer();
return;
}