Fix of INT PAL 0022077: TC5.1.5: usage of filters in Modification dialogs, Add button.

1) Don't clear selection at open of dialog;
2) Disable automatic insert of selected elements in the list box;
3) Don't clear mesh selection during geometry selection.
This commit is contained in:
akl 2013-04-04 08:47:29 +00:00
parent d6600c3aeb
commit 16ed45cd7d

View File

@ -607,7 +607,9 @@ void SMESHGUI_MultiEditDlg::onSelectionDone()
anItem->setSelected(true);
}
}
myMesh = SMESH::GetMeshByIO(anIO);
SMESH::SMESH_Mesh_var aSelMesh = SMESH::GetMeshByIO(anIO);
if (!aSelMesh->_is_nil())
myMesh = aSelMesh;
}
if (nbSel > 0) {
@ -662,7 +664,7 @@ void SMESHGUI_MultiEditDlg::onFilterBtn()
myFilterDlg->SetSelection();
myFilterDlg->SetMesh(myMesh);
myFilterDlg->SetSourceWg(myListBox);
myFilterDlg->SetSourceWg(myListBox, false);
myFilterDlg->show();
}
@ -976,7 +978,7 @@ void SMESHGUI_MultiEditDlg::setSelectionMode()
{
SMESH::RemoveFilters();
mySelectionMgr->clearSelected();
// mySelectionMgr->clearSelected();
mySelectionMgr->clearFilters();
if (mySubmeshChk->isChecked()) {