From: nds Date: Wed, 9 Sep 2015 13:06:55 +0000 (+0300) Subject: Issue #905 Update of invalid feature representation in property panel X-Git-Tag: V_1.4.0_beta4~58 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d6d306a9f24bfb7e1ad0d612ab335cf7c0fb5c16;p=modules%2Fshaper.git Issue #905 Update of invalid feature representation in property panel Widget should not be in pink also. --- diff --git a/src/PartSet/PartSet_WidgetSketchLabel.cpp b/src/PartSet/PartSet_WidgetSketchLabel.cpp index 12d720a3c..44656f2ab 100644 --- a/src/PartSet/PartSet_WidgetSketchLabel.cpp +++ b/src/PartSet/PartSet_WidgetSketchLabel.cpp @@ -115,8 +115,10 @@ void PartSet_WidgetSketchLabel::onSelectionChanged() 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) @@ -182,7 +184,6 @@ void PartSet_WidgetSketchLabel::updateByPlaneSelected(const ModuleBase_ViewerPrs //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 diff --git a/src/XGUI/XGUI_ErrorMgr.cpp b/src/XGUI/XGUI_ErrorMgr.cpp index 1cf0d45b9..68e69b57a 100644 --- a/src/XGUI/XGUI_ErrorMgr.cpp +++ b/src/XGUI/XGUI_ErrorMgr.cpp @@ -86,9 +86,7 @@ void XGUI_ErrorMgr::updateActionState(QAction* theAction, const FeaturePtr& theF // update controls error information QWidget* aWidget = myPropertyPanel->headerWidget(); - if (theEnabled) - aWidget->setToolTip(""); - else + if (aWidget) aWidget->setToolTip(getFeatureError(theFeature)); }