]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
fix bug context menu DeleteGroupDlg vuzlov/bos19889
authorViktor UZLOV <vuzlov@debian10-01.nnov.opencascade.com>
Fri, 11 Sep 2020 18:57:52 +0000 (21:57 +0300)
committerViktor UZLOV <vuzlov@debian10-01.nnov.opencascade.com>
Fri, 11 Sep 2020 18:57:52 +0000 (21:57 +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();
 }