]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Fix for the bug IPAL22807:"TC6.4.0: input objects are not highlighted in 3D viewer"
authorana <ana@opencascade.com>
Wed, 7 Mar 2012 08:45:19 +0000 (08:45 +0000)
committerana <ana@opencascade.com>
Wed, 7 Mar 2012 08:45:19 +0000 (08:45 +0000)
src/PrimitiveGUI/PrimitiveGUI_ConeDlg.cxx

index 407a64a1288e2539e0bcf763d322a14998483bda..ba2c4f934a2b77a43ee454abc1d715e541f7c278 100644 (file)
@@ -268,22 +268,24 @@ void PrimitiveGUI_ConeDlg::SelectionIntoArgument()
     QString aName = GEOMBase::GetName( aSelectedObject.get() );
 
     myEditCurrentArgument->setText(aName);
-
-    // clear selection
-    disconnect(myGeomGUI->getApp()->selectionMgr(), 0, this, 0);
-    myGeomGUI->getApp()->selectionMgr()->clearSelected();
-    connect(myGeomGUI->getApp()->selectionMgr(), SIGNAL(currentSelectionChanged()),
-           this, SLOT(SelectionIntoArgument()));
     
     if (myEditCurrentArgument == GroupPoints->LineEdit1) {
       myPoint = aSelectedObject;
       if (myPoint && !myDir)
-       GroupPoints->PushButton2->click();
+        GroupPoints->PushButton2->click();
     }
     else if (myEditCurrentArgument == GroupPoints->LineEdit2) {
       myDir = aSelectedObject;
       if (myDir && !myPoint)
-       GroupPoints->PushButton1->click();
+        GroupPoints->PushButton1->click();
+    }
+
+    if ((myPoint && !myDir) || (myDir && !myPoint)) {
+      // clear selection
+      disconnect(myGeomGUI->getApp()->selectionMgr(), 0, this, 0);
+      myGeomGUI->getApp()->selectionMgr()->clearSelected();
+      connect(myGeomGUI->getApp()->selectionMgr(), SIGNAL(currentSelectionChanged()),
+             this, SLOT(SelectionIntoArgument()));
     }
   }