From: mzn Date: Fri, 21 Jan 2005 13:15:13 +0000 (+0000) Subject: Fix for Bug PAL7766 ( An exception appears during construction of a group in the... X-Git-Tag: V2_2_0b2~36 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e3fe383c97ecf3bedd8ac520632537d03a353ce5;p=modules%2Fsmesh.git Fix for Bug PAL7766 ( An exception appears during construction of a group in the "Mesh" module ). --- diff --git a/src/SMESHGUI/SMESHGUI_FilterDlg.cxx b/src/SMESHGUI/SMESHGUI_FilterDlg.cxx index f20b321ca..0f8a79779 100755 --- a/src/SMESHGUI/SMESHGUI_FilterDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_FilterDlg.cxx @@ -1888,6 +1888,8 @@ void SMESHGUI_FilterDlg::onDeactivate() void SMESHGUI_FilterDlg::enterEvent( QEvent* ) { // mySMESHGUI->EmitSignalDeactivateDialog(); + mySMESHGUI->SetActiveDialogBox( (QDialog*)this ); + mySMESHGUI->ResetState(); setEnabled( true ); } diff --git a/src/SMESHGUI/SMESHGUI_GroupDlg.cxx b/src/SMESHGUI/SMESHGUI_GroupDlg.cxx index 4d7445df3..aa3a15cbd 100644 --- a/src/SMESHGUI/SMESHGUI_GroupDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_GroupDlg.cxx @@ -1342,6 +1342,7 @@ void SMESHGUI_GroupDlg::onClose() //======================================================================= void SMESHGUI_GroupDlg::onDeactivate() { + mySMESHGUI->ResetState(); setEnabled( false ); } @@ -1356,6 +1357,8 @@ void SMESHGUI_GroupDlg::enterEvent( QEvent* ) setEnabled( true ); mySelectionMode = -1; setSelectionMode( myTypeId ); + mySMESHGUI->SetActiveDialogBox( (QDialog*)this ) ; + mySMESHGUI->SetState(800); } }