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 13:41:55 +00:00
parent c1bc8299f0
commit 52489860fc

View File

@ -263,12 +263,6 @@ void PrimitiveGUI_CylinderDlg::SelectionIntoArgument()
myEditCurrentArgument->setText(aName); 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) { if (myEditCurrentArgument == GroupPoints->LineEdit1) {
myPoint = aSelectedObject; myPoint = aSelectedObject;
if (myPoint && !myDir) if (myPoint && !myDir)
@ -279,6 +273,13 @@ void PrimitiveGUI_CylinderDlg::SelectionIntoArgument()
if (myDir && !myPoint) if (myDir && !myPoint)
GroupPoints->PushButton1->click(); GroupPoints->PushButton1->click();
} }
// clear selection
if ((myDir && !myPoint) || (myPoint && !myDir)) {
disconnect(myGeomGUI->getApp()->selectionMgr(), 0, this, 0);
myGeomGUI->getApp()->selectionMgr()->clearSelected();
connect(myGeomGUI->getApp()->selectionMgr(), SIGNAL(currentSelectionChanged()),
this, SLOT(SelectionIntoArgument()));
}
} }
displayPreview(true); displayPreview(true);