Salome HOME
0020378: selection is empty after "cancel" in the hypothesis edition dialog box
authorasl <asl@opencascade.com>
Tue, 15 Sep 2009 12:20:05 +0000 (12:20 +0000)
committerasl <asl@opencascade.com>
Tue, 15 Sep 2009 12:20:05 +0000 (12:20 +0000)
src/SMESHGUI/SMESHGUI_Hypotheses.cxx

index e9391ba04d8d484f699768987f8c5b78ac01cd64..f459f6a196dd90ffac8ae13ea11bea2aad4853cb 100644 (file)
@@ -287,8 +287,11 @@ void SMESHGUI_GenericHypothesisCreator::onDialogFinished( int result )
   SMESHGUI::GetSMESHGUI()->updateObjBrowser( true, 0 );
   myHypo = SMESH::SMESH_Hypothesis::_nil();
   myInitParamsHypo = SMESH::SMESH_Hypothesis::_nil();
-  myDlg->close(); myDlg = 0;
-  //delete myDlg; myDlg = 0;
+
+  disconnect( myDlg, SIGNAL( finished( int ) ), this, SLOT( onDialogFinished( int ) ) );
+  myDlg->close();
+  //delete myDlg;
+  myDlg = 0;
   emit finished( result );
 }