PAL10515. fix disconnect from selection manager

This commit is contained in:
eap 2005-11-16 15:01:31 +00:00
parent a5e3cc49d7
commit 2850e5f7ba

View File

@ -389,7 +389,8 @@ void SMESHGUI_CreatePatternDlg::onSave()
//SUIT_Application::getDesktop()->setSelectionModes(ActorSelection); //SUIT_Application::getDesktop()->setSelectionModes(ActorSelection);
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(mySelectionMgr, SIGNAL(currentSelectionChanged()), this, SLOT(onSelectionDone()));
disconnect(mySMESHGUI, 0, this, 0); disconnect(mySMESHGUI, 0, this, 0);
mySMESHGUI->ResetState(); mySMESHGUI->ResetState();
accept(); accept();