From 8620d4d7358d0bb8c3216b5295d3a100c902278b Mon Sep 17 00:00:00 2001 From: rnv Date: Wed, 29 Apr 2015 16:44:24 +0300 Subject: [PATCH] Fix for the "52700: Bad processing of selection button in Point creation dialog box" issue. --- src/BasicGUI/BasicGUI_PointDlg.cxx | 6 +++--- src/GroupGUI/GroupGUI_GroupDlg.cxx | 18 ++++++++++++++++-- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/src/BasicGUI/BasicGUI_PointDlg.cxx b/src/BasicGUI/BasicGUI_PointDlg.cxx index 84b9a7bd5..983666d28 100644 --- a/src/BasicGUI/BasicGUI_PointDlg.cxx +++ b/src/BasicGUI/BasicGUI_PointDlg.cxx @@ -613,9 +613,9 @@ void BasicGUI_PointDlg::SetEditCurrentArgument() } send->setDown(true); - if ((send == GroupLineIntersection->PushButton1 || - send == GroupLineIntersection->PushButton2) && !myBusy) - SelectionIntoArgument(); + // if ((send == GroupLineIntersection->PushButton1 || + // send == GroupLineIntersection->PushButton2) && !myBusy) + // SelectionIntoArgument(); } diff --git a/src/GroupGUI/GroupGUI_GroupDlg.cxx b/src/GroupGUI/GroupGUI_GroupDlg.cxx index 82a51075e..68b6314b1 100644 --- a/src/GroupGUI/GroupGUI_GroupDlg.cxx +++ b/src/GroupGUI/GroupGUI_GroupDlg.cxx @@ -439,11 +439,17 @@ void GroupGUI_GroupDlg::SetEditCurrentArgument() if (send == mySelBtn) { myEditCurrentArgument = myMainName; myShape2Name->setText(""); + mySelBtn->setDown(true); + mySelBtn2->setDown(false); } else if (send == mySelBtn2 || sender() == myRestrictGroup) { setInPlaceObj(GEOM::GEOM_Object::_nil()); myShape2Name->setText(""); - if (subSelectionWay() != ALL_SUBSHAPES) { + if ( send == mySelBtn2 ) { + mySelBtn2->setDown(true); + mySelBtn->setDown(false); + } + if (subSelectionWay() != ALL_SUBSHAPES) { myEditCurrentArgument = myShape2Name; } else { @@ -451,7 +457,11 @@ void GroupGUI_GroupDlg::SetEditCurrentArgument() } } - activateSelection(); + // activateSelection(); + if(myEditCurrentArgument) { + myEditCurrentArgument->setFocus(); + send->setDown(true); + } updateState(); } @@ -558,6 +568,9 @@ void GroupGUI_GroupDlg::SelectionIntoArgument() { if (subSelectionWay() != ALL_SUBSHAPES && myEditCurrentArgument == myShape2Name) { onGetInPlace(); + if( !myInPlaceObj->_is_nil() ) { + mySelBtn2->setDown(false); + } return; } @@ -582,6 +595,7 @@ void GroupGUI_GroupDlg::SelectionIntoArgument() } myMainObj = anObj; if (!CORBA::is_nil(myMainObj)) { + mySelBtn->setDown(false); SALOME_View* view = GEOM_Displayer::GetActiveView(); if (view) { CORBA::String_var aMainEntry = myMainObj->GetStudyEntry(); -- 2.39.2