From: nds Date: Wed, 9 Sep 2015 13:16:10 +0000 (+0300) Subject: Issue #905 Update of invalid feature representation in property panel X-Git-Tag: V_1.4.0_beta4~57 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3618f15ba5d072f2b95294eb18558cd2097d0983;p=modules%2Fshaper.git Issue #905 Update of invalid feature representation in property panel Correction for Part feature. --- diff --git a/src/XGUI/XGUI_ErrorMgr.cpp b/src/XGUI/XGUI_ErrorMgr.cpp index 68e69b57a..8a92c1d62 100644 --- a/src/XGUI/XGUI_ErrorMgr.cpp +++ b/src/XGUI/XGUI_ErrorMgr.cpp @@ -83,11 +83,13 @@ void XGUI_ErrorMgr::updateActionState(QAction* theAction, const FeaturePtr& theF else theAction->setData(INVALID_VALUE); } - - // update controls error information - QWidget* aWidget = myPropertyPanel->headerWidget(); - if (aWidget) - aWidget->setToolTip(getFeatureError(theFeature)); + // some operations have no property panel, so it is important to check that it is not null + if (myPropertyPanel) { + // update controls error information + QWidget* aWidget = myPropertyPanel->headerWidget(); + if (aWidget) + aWidget->setToolTip(getFeatureError(theFeature)); + } } const char* toString(ModelAPI_ExecState theExecState)