Salome HOME
Merge remote-tracking branch 'origin/master' into gni/documentation
authorGérald NICOLAS <gerald.nicolas@edf.fr>
Fri, 18 Sep 2020 07:17:51 +0000 (09:17 +0200)
committerGérald NICOLAS <gerald.nicolas@edf.fr>
Fri, 18 Sep 2020 07:17:51 +0000 (09:17 +0200)
src/SMESHGUI/SMESHGUI_DeleteGroupDlg.cxx

index 89ee913212b018a424e1f7162b02ceb476009db7..093ab1075c61658676b99f1ef35d31a5641b413e 100644 (file)
@@ -250,12 +250,16 @@ void SMESHGUI_DeleteGroupDlg::onOk()
 //=================================================================================
 void SMESHGUI_DeleteGroupDlg::reject()
 {
+  if (SMESH::GetCurrentVtkView()) {
+    SMESH::RemoveFilters(); // PAL6938 -- clean all mesh entity filters
+  }
   if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
     aViewWindow->SetSelectionMode(ActorSelection);
   disconnect(mySelectionMgr, 0, this, 0);
-  disconnect(mySMESHGUI, 0, this, 0);
-  mySMESHGUI->ResetState();
+  //disconnect(mySMESHGUI, 0, this, 0);
+  //mySMESHGUI->ResetState();
   mySelectionMgr->clearFilters();
+  mySMESHGUI->ResetState();
   QDialog::reject();
 }