Salome HOME
PAL10515. fix disconnect from selection manager V3_1_0a3
authoreap <eap@opencascade.com>
Wed, 16 Nov 2005 15:01:31 +0000 (15:01 +0000)
committereap <eap@opencascade.com>
Wed, 16 Nov 2005 15:01:31 +0000 (15:01 +0000)
src/SMESHGUI/SMESHGUI_CreatePatternDlg.cxx

index fdf604ae7bc73a13b865078ff1b1f4508536d489..d2146e01e5c39b2baa6997dc32d551afe780a0d2 100755 (executable)
@@ -389,7 +389,8 @@ void SMESHGUI_CreatePatternDlg::onSave()
       //SUIT_Application::getDesktop()->setSelectionModes(ActorSelection);\r
       if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))\r
        aViewWindow->SetSelectionMode(ActorSelection);\r
       //SUIT_Application::getDesktop()->setSelectionModes(ActorSelection);\r
       if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))\r
        aViewWindow->SetSelectionMode(ActorSelection);\r
-      disconnect(mySelectionMgr, 0, this, 0);\r
+      //disconnect(mySelectionMgr, 0, this, 0);\r
+      disconnect(mySelectionMgr, SIGNAL(currentSelectionChanged()), this, SLOT(onSelectionDone()));\r
       disconnect(mySMESHGUI, 0, this, 0);\r
       mySMESHGUI->ResetState();\r
       accept();\r
       disconnect(mySMESHGUI, 0, this, 0);\r
       mySMESHGUI->ResetState();\r
       accept();\r