From: Viktor UZLOV Date: Fri, 11 Sep 2020 18:57:52 +0000 (+0300) Subject: fix bug context menu DeleteGroupDlg X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fvuzlov%2Fbos19889;hp=3632886261b4b281b67729a6c9a2be61373e4f4e;p=modules%2Fsmesh.git fix bug context menu DeleteGroupDlg --- 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(); }