From cf2a8cec1c5c02c3cd16d7383646daacb0095250 Mon Sep 17 00:00:00 2001 From: asl Date: Tue, 15 Sep 2009 12:20:05 +0000 Subject: [PATCH] 0020378: selection is empty after "cancel" in the hypothesis edition dialog box --- src/SMESHGUI/SMESHGUI_Hypotheses.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 ); } -- 2.39.2