}
//********************************************************************
-bool PartSet_WidgetFeaturePointSelector::activateSelectionAndFilters(bool toActivate)
+void PartSet_WidgetFeaturePointSelector::updateSelectionModesAndFilters(bool toActivate)
{
#ifdef HIGHLIGHT_STAYS_PROBLEM
Handle(AIS_InteractiveContext) aContext =
XGUI_Tools::workshop(myWorkshop)->viewer()->AISContext();
Quantity_Color aColor;
- Handle(Graphic3d_HighlightStyle) aHStyle = aContext->HighlightStyle();
- Handle(Graphic3d_HighlightStyle) aSStyle = aContext->SelectionStyle();
+ Handle(Prs3d_Drawer) aHStyle = aContext->HighlightStyle();
+ Handle(Prs3d_Drawer) aSStyle = aContext->SelectionStyle();
if (toActivate) {
std::vector<int> aColors;
aColors = Config_PropManager::color("Visualization", "sketch_entity_color");
#endif
- return ModuleBase_WidgetShapeSelector::activateSelectionAndFilters(toActivate);
+ ModuleBase_WidgetShapeSelector::updateSelectionModesAndFilters(toActivate);
}
//********************************************************************
updateObject(feature());
- emit focusOutWidget(this);
// we need to deselect base feature for better visibility of selected feature
XGUI_Tools::workshop(myWorkshop)->displayer()->clearSelected(false);
+
+ // focusOutWidget should be the last functionality in the method because after this emit,
+ // the widget may be deleted and members of this class are deleted (e.g. myWorkshop)
+ emit focusOutWidget(this);
}
//********************************************************************