Fix for the bug IPAL22807:"TC6.4.0: input objects are not highlighted in 3D viewer"

This commit is contained in:
ana 2012-03-07 08:45:19 +00:00
parent 9f11350cbe
commit aa5b2185c9

View File

@ -269,21 +269,23 @@ void PrimitiveGUI_ConeDlg::SelectionIntoArgument()
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()));
}
}