]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1590 crash when rename group
authornds <nds@opencascade.com>
Fri, 2 Sep 2016 19:17:39 +0000 (22:17 +0300)
committernds <nds@opencascade.com>
Fri, 2 Sep 2016 19:21:25 +0000 (22:21 +0300)
src/XGUI/XGUI_OperationMgr.cpp

index 9f29523f798bb8de5c47f579d86a0c5658ed4ae3..4db8401dc3b4ea9c4106890222233bcbc6cde8cc 100644 (file)
@@ -666,11 +666,11 @@ bool XGUI_OperationMgr::onProcessEnter(QObject* theObject)
   return isAccepted;\r
 }\r
 \r
-bool editorControl(QObject* theObject)
-{
-  QLineEdit* aLineEdit = dynamic_cast<QLineEdit*>(theObject);
-  return aLineEdit;
-}
+bool editorControl(QObject* theObject)\r
+{\r
+  QLineEdit* aLineEdit = dynamic_cast<QLineEdit*>(theObject);\r
+  return aLineEdit;\r
+}\r
 \r
 bool XGUI_OperationMgr::onProcessDelete(QObject* theObject)\r
 {\r
@@ -715,10 +715,10 @@ bool XGUI_OperationMgr::onProcessDelete(QObject* theObject)
       // property panel child object is processed to process delete performed on Apply button of PP\r
       isToDeleteObject = true;\r
     }\r
-    else if (editorControl(theObject)) {
-      isToDeleteObject = false; /// Line Edit of Rename operation in ObjectBrowser
-      isAccepted = true;
-    }
+    else if (editorControl(theObject)) {\r
+      isToDeleteObject = false; /// Line Edit of Rename operation in ObjectBrowser\r
+      isAccepted = true;\r
+    }\r
 \r
     if (isToDeleteObject) {\r
       aWorkshop->deleteObjects();\r