From 0d6eb0b93d880cb470f4ebfd1a49b71dfa273c72 Mon Sep 17 00:00:00 2001 From: nds Date: Fri, 2 Sep 2016 22:17:39 +0300 Subject: [PATCH] Issue #1590 crash when rename group --- src/XGUI/XGUI_OperationMgr.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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(); -- 2.39.2