From: asl Date: Tue, 15 Sep 2009 12:20:05 +0000 (+0000) Subject: 0020378: selection is empty after "cancel" in the hypothesis edition dialog box X-Git-Tag: V5_1_3rc1~54 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cf2a8cec1c5c02c3cd16d7383646daacb0095250;p=modules%2Fsmesh.git 0020378: selection is empty after "cancel" in the hypothesis edition dialog box --- diff --git a/src/SMESHGUI/SMESHGUI_Hypotheses.cxx b/src/SMESHGUI/SMESHGUI_Hypotheses.cxx index e9391ba04..f459f6a19 100644 --- a/src/SMESHGUI/SMESHGUI_Hypotheses.cxx +++ b/src/SMESHGUI/SMESHGUI_Hypotheses.cxx @@ -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 ); }