]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Avoid crash by enter
authornds <nds@opencascade.com>
Fri, 15 Dec 2017 09:58:29 +0000 (12:58 +0300)
committernds <nds@opencascade.com>
Fri, 15 Dec 2017 09:59:11 +0000 (12:59 +0300)
src/XGUI/XGUI_OperationMgr.cpp

index d8a7041d2e641a936ddf28e55cfea129cfeca4ba..6d77ef8a3a3b0e78904dc0744538d25e7b66471d 100644 (file)
@@ -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);