From: Viktor UZLOV Date: Fri, 11 Sep 2020 18:57:52 +0000 (+0300) Subject: #19889 [CEA] No more items available in context menu after delete group with contents X-Git-Tag: V9_6_0a1~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=aca37fd07f7af02f43919ef9ff1822adcbfff3d3;p=modules%2Fsmesh.git #19889 [CEA] No more items available in context menu after delete group with contents --- diff --git a/src/SMESHGUI/SMESHGUI_DeleteGroupDlg.cxx b/src/SMESHGUI/SMESHGUI_DeleteGroupDlg.cxx index 89ee91321..093ab1075 100644 --- a/src/SMESHGUI/SMESHGUI_DeleteGroupDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_DeleteGroupDlg.cxx @@ -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(); }