Salome HOME
Fix of INT PAL 0022077: TC5.1.5: usage of filters in Modification dialogs, Add button.
authorakl <akl@opencascade.com>
Thu, 4 Apr 2013 08:47:29 +0000 (08:47 +0000)
committerakl <akl@opencascade.com>
Thu, 4 Apr 2013 08:47:29 +0000 (08:47 +0000)
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.

src/SMESHGUI/SMESHGUI_MultiEditDlg.cxx

index b161614789114e7e8bac99054e653fb4ae18171d..381cecf64f24d55937fe0a75ac7ee02bfdeece7f 100755 (executable)
@@ -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()) {