From 3618f15ba5d072f2b95294eb18558cd2097d0983 Mon Sep 17 00:00:00 2001 From: nds Date: Wed, 9 Sep 2015 16:16:10 +0300 Subject: [PATCH] Issue #905 Update of invalid feature representation in property panel Correction for Part feature. --- src/XGUI/XGUI_ErrorMgr.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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) -- 2.39.2