From e925e85414837efeea0bd8c29972fb9c10cb7916 Mon Sep 17 00:00:00 2001 From: nds Date: Fri, 15 Dec 2017 12:58:29 +0300 Subject: [PATCH] Avoid crash by enter --- src/XGUI/XGUI_OperationMgr.cpp | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.39.2