mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-30 19:30:36 +05:00
Fix for the Bug IPAL22041 TC5.1.5: "Fillet Construcion" dialog loses current selection.
This commit is contained in:
parent
19cfa7531d
commit
93a152798f
@ -526,6 +526,19 @@ void OperationGUI_ChamferDlg::SelectionIntoArgument()
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
//rnv: To fix the bug IPAL22041 TC5.1.5: "Fillet Construcion" dialog loses current selection.
|
||||
// Restore selection of the main shape, if need,
|
||||
// because it was canceled.
|
||||
aSelMgr->selectedObjects(aSelList);
|
||||
if (aSelList.Extent() == 0 && !myShape->_is_nil()) {
|
||||
disconnect(myGeomGUI->getApp()->selectionMgr(), 0, this, 0);
|
||||
ObjectList list;
|
||||
list.push_back(myShape);
|
||||
selectObjects(list);
|
||||
connect(myGeomGUI->getApp()->selectionMgr(), SIGNAL(currentSelectionChanged()),
|
||||
this, SLOT(SelectionIntoArgument()));
|
||||
}
|
||||
}
|
||||
|
||||
//=================================================================================
|
||||
|
@ -422,6 +422,19 @@ void OperationGUI_FilletDlg::SelectionIntoArgument()
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
//rnv: To fix the bug IPAL22041 TC5.1.5: "Fillet Construcion" dialog loses current selection.
|
||||
// Restore selection of the main shape, if need,
|
||||
// because it was canceled.
|
||||
aSelMgr->selectedObjects(aSelList);
|
||||
if (aSelList.Extent() == 0 && !myShape->_is_nil()) {
|
||||
disconnect(myGeomGUI->getApp()->selectionMgr(), 0, this, 0);
|
||||
ObjectList list;
|
||||
list.push_back(myShape);
|
||||
selectObjects(list);
|
||||
connect(myGeomGUI->getApp()->selectionMgr(), SIGNAL(currentSelectionChanged()),
|
||||
this, SLOT(SelectionIntoArgument()));
|
||||
}
|
||||
}
|
||||
|
||||
//=================================================================================
|
||||
|
Loading…
Reference in New Issue
Block a user