From e3fe383c97ecf3bedd8ac520632537d03a353ce5 Mon Sep 17 00:00:00 2001 From: mzn Date: Fri, 21 Jan 2005 13:15:13 +0000 Subject: [PATCH] Fix for Bug PAL7766 ( An exception appears during construction of a group in the "Mesh" module ). --- src/SMESHGUI/SMESHGUI_FilterDlg.cxx | 2 ++ src/SMESHGUI/SMESHGUI_GroupDlg.cxx | 3 +++ 2 files changed, 5 insertions(+) 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); } } -- 2.39.2