From: nds Date: Fri, 15 Dec 2017 09:58:29 +0000 (+0300) Subject: Avoid crash by enter X-Git-Tag: V_2.10.0RC~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e925e85414837efeea0bd8c29972fb9c10cb7916;p=modules%2Fshaper.git Avoid crash by enter --- diff --git a/src/XGUI/XGUI_OperationMgr.cpp b/src/XGUI/XGUI_OperationMgr.cpp index d8a7041d2..6d77ef8a3 100644 --- a/src/XGUI/XGUI_OperationMgr.cpp +++ b/src/XGUI/XGUI_OperationMgr.cpp @@ -742,6 +742,8 @@ bool XGUI_OperationMgr::onProcessEnter(QObject* theObject) if (!aOperation) return isAccepted; ModuleBase_IPropertyPanel* aPanel = aOperation->propertyPanel(); + if (!aPanel) + return isAccepted; // the next code is obsolete as we want to process Enter in property panel always // only property panel enter is processed in order to do not process enter in application dialogs //bool isPPChild = isChildObject(theObject, aPanel);