Salome HOME
#19889 [CEA] No more items available in context menu after delete group with contents
authorViktor UZLOV <vuzlov@debian10-01.nnov.opencascade.com>
Fri, 11 Sep 2020 18:57:52 +0000 (21:57 +0300)
committerrnv <rnv@opencascade.com>
Mon, 14 Sep 2020 09:21:01 +0000 (12:21 +0300)
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();
 }