Salome HOME
Fix for the "52700: Bad processing of selection button in Point creation dialog box...
authorrnv <rnv@opencascade.com>
Wed, 29 Apr 2015 13:44:24 +0000 (16:44 +0300)
committerrnv <rnv@opencascade.com>
Wed, 29 Apr 2015 13:44:24 +0000 (16:44 +0300)
src/BasicGUI/BasicGUI_PointDlg.cxx
src/GroupGUI/GroupGUI_GroupDlg.cxx

index 84b9a7bd5de12552c802329070962229852293e4..983666d280b9af71eed29afc0963034ebb9635b5 100644 (file)
@@ -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();
 }
 
 
index 82a51075e3484b6ed45718cc04a44b75fca4acf2..68b6314b1ce93b2cb29ad882df7fa9e2e9a6415d 100644 (file)
@@ -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();