Fix for the "52700: Bad processing of selection button in Point creation dialog box" issue.

This commit is contained in:
rnv 2015-04-29 16:44:24 +03:00
parent 462ad02a36
commit 8620d4d735
2 changed files with 19 additions and 5 deletions

View File

@ -613,9 +613,9 @@ void BasicGUI_PointDlg::SetEditCurrentArgument()
} }
send->setDown(true); send->setDown(true);
if ((send == GroupLineIntersection->PushButton1 || // if ((send == GroupLineIntersection->PushButton1 ||
send == GroupLineIntersection->PushButton2) && !myBusy) // send == GroupLineIntersection->PushButton2) && !myBusy)
SelectionIntoArgument(); // SelectionIntoArgument();
} }

View File

@ -439,11 +439,17 @@ void GroupGUI_GroupDlg::SetEditCurrentArgument()
if (send == mySelBtn) { if (send == mySelBtn) {
myEditCurrentArgument = myMainName; myEditCurrentArgument = myMainName;
myShape2Name->setText(""); myShape2Name->setText("");
mySelBtn->setDown(true);
mySelBtn2->setDown(false);
} }
else if (send == mySelBtn2 || sender() == myRestrictGroup) { else if (send == mySelBtn2 || sender() == myRestrictGroup) {
setInPlaceObj(GEOM::GEOM_Object::_nil()); setInPlaceObj(GEOM::GEOM_Object::_nil());
myShape2Name->setText(""); myShape2Name->setText("");
if (subSelectionWay() != ALL_SUBSHAPES) { if ( send == mySelBtn2 ) {
mySelBtn2->setDown(true);
mySelBtn->setDown(false);
}
if (subSelectionWay() != ALL_SUBSHAPES) {
myEditCurrentArgument = myShape2Name; myEditCurrentArgument = myShape2Name;
} }
else { else {
@ -451,7 +457,11 @@ void GroupGUI_GroupDlg::SetEditCurrentArgument()
} }
} }
activateSelection(); // activateSelection();
if(myEditCurrentArgument) {
myEditCurrentArgument->setFocus();
send->setDown(true);
}
updateState(); updateState();
} }
@ -558,6 +568,9 @@ void GroupGUI_GroupDlg::SelectionIntoArgument()
{ {
if (subSelectionWay() != ALL_SUBSHAPES && myEditCurrentArgument == myShape2Name) { if (subSelectionWay() != ALL_SUBSHAPES && myEditCurrentArgument == myShape2Name) {
onGetInPlace(); onGetInPlace();
if( !myInPlaceObj->_is_nil() ) {
mySelBtn2->setDown(false);
}
return; return;
} }
@ -582,6 +595,7 @@ void GroupGUI_GroupDlg::SelectionIntoArgument()
} }
myMainObj = anObj; myMainObj = anObj;
if (!CORBA::is_nil(myMainObj)) { if (!CORBA::is_nil(myMainObj)) {
mySelBtn->setDown(false);
SALOME_View* view = GEOM_Displayer::GetActiveView(); SALOME_View* view = GEOM_Displayer::GetActiveView();
if (view) { if (view) {
CORBA::String_var aMainEntry = myMainObj->GetStudyEntry(); CORBA::String_var aMainEntry = myMainObj->GetStudyEntry();