ModuleBase_ViewerPrs aPrs = aSelected.first();
bool aDone = ModuleBase_WidgetValidated::setSelection(aSelected, false);
- if (aDone)
+ if (aDone) {
updateByPlaneSelected(aPrs);
+ updateObject(myFeature);
+ }
}
void PartSet_WidgetSketchLabel::updateByPlaneSelected(const ModuleBase_ViewerPrs& thePrs)
//XGUI_Displayer* aDisp = workshop()->displayer();
//aDisp->closeLocalContexts();
emit planeSelected(plane());
- emit valuesChanged();
// after the plane is selected in the sketch, the sketch selection should be activated
// it can not be performed in the sketch label widget because, we don't need to switch off
// the selection by any label deactivation, but need to switch it off by stop the sketch
// update controls error information
QWidget* aWidget = myPropertyPanel->headerWidget();
- if (theEnabled)
- aWidget->setToolTip("");
- else
+ if (aWidget)
aWidget->setToolTip(getFeatureError(theFeature));
}