From: nds Date: Fri, 2 Sep 2016 19:17:39 +0000 (+0300) Subject: Issue #1590 crash when rename group X-Git-Tag: V_2.5.0~65 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0d6eb0b93d880cb470f4ebfd1a49b71dfa273c72;p=modules%2Fshaper.git Issue #1590 crash when rename group --- diff --git a/src/XGUI/XGUI_OperationMgr.cpp b/src/XGUI/XGUI_OperationMgr.cpp index 9f29523f7..4db8401dc 100644 --- a/src/XGUI/XGUI_OperationMgr.cpp +++ b/src/XGUI/XGUI_OperationMgr.cpp @@ -666,11 +666,11 @@ bool XGUI_OperationMgr::onProcessEnter(QObject* theObject) return isAccepted; } -bool editorControl(QObject* theObject) -{ - QLineEdit* aLineEdit = dynamic_cast(theObject); - return aLineEdit; -} +bool editorControl(QObject* theObject) +{ + QLineEdit* aLineEdit = dynamic_cast(theObject); + return aLineEdit; +} bool XGUI_OperationMgr::onProcessDelete(QObject* theObject) { @@ -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 isToDeleteObject = true; } - else if (editorControl(theObject)) { - isToDeleteObject = false; /// Line Edit of Rename operation in ObjectBrowser - isAccepted = true; - } + else if (editorControl(theObject)) { + isToDeleteObject = false; /// Line Edit of Rename operation in ObjectBrowser + isAccepted = true; + } if (isToDeleteObject) { aWorkshop->deleteObjects();