Salome HOME
Merge Nodes dialog box with opened Merge Elements crashes Salome. Regress to series3x
authordmv <dmv@opencascade.com>
Tue, 7 Oct 2008 08:42:26 +0000 (08:42 +0000)
committerdmv <dmv@opencascade.com>
Tue, 7 Oct 2008 08:42:26 +0000 (08:42 +0000)
src/SMESHGUI/SMESHGUI_EditMeshDlg.cxx

index 0709a751a35b6d03153be77c62f88d98e84ce2ae..b371b7b25a2fbd18976064cb1fd577a243696868 100644 (file)
@@ -1111,6 +1111,9 @@ void SMESHGUI_EditMeshDlg::DeactivateActiveDialog()
     mySMESHGUI->ResetState();
     mySMESHGUI->SetActiveDialogBox(0);
   }
+
+  mySelectionMgr->clearSelected();
+  disconnect(mySelectionMgr, 0, this, 0);
 }
 
 //=================================================================================
@@ -1127,6 +1130,7 @@ void SMESHGUI_EditMeshDlg::ActivateThisDialog()
   GroupEdit->setEnabled(true);
   GroupButtons->setEnabled(true);
 
+  connect(mySelectionMgr, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
   mySMESHGUI->SetActiveDialogBox((QDialog*)this);
   SelectionIntoArgument();
 }