#19889 [CEA] No more items available in context menu after delete group with contents

This commit is contained in:
Viktor UZLOV 2020-09-11 21:57:52 +03:00 committed by rnv
parent 3632886261
commit aca37fd07f

View File

@ -250,12 +250,16 @@ void SMESHGUI_DeleteGroupDlg::onOk()
//================================================================================= //=================================================================================
void SMESHGUI_DeleteGroupDlg::reject() void SMESHGUI_DeleteGroupDlg::reject()
{ {
if (SMESH::GetCurrentVtkView()) {
SMESH::RemoveFilters(); // PAL6938 -- clean all mesh entity filters
}
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI )) if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
aViewWindow->SetSelectionMode(ActorSelection); aViewWindow->SetSelectionMode(ActorSelection);
disconnect(mySelectionMgr, 0, this, 0); disconnect(mySelectionMgr, 0, this, 0);
disconnect(mySMESHGUI, 0, this, 0); //disconnect(mySMESHGUI, 0, this, 0);
mySMESHGUI->ResetState(); //mySMESHGUI->ResetState();
mySelectionMgr->clearFilters(); mySelectionMgr->clearFilters();
mySMESHGUI->ResetState();
QDialog::reject(); QDialog::reject();
} }