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=245e6e00b2a619975a01ede75d4d9d6bdface682;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(); }