Salome HOME
Fix for Bug PAL7766 ( An exception appears during construction of a group in the...
authormzn <mzn@opencascade.com>
Fri, 21 Jan 2005 13:15:13 +0000 (13:15 +0000)
committermzn <mzn@opencascade.com>
Fri, 21 Jan 2005 13:15:13 +0000 (13:15 +0000)
src/SMESHGUI/SMESHGUI_FilterDlg.cxx
src/SMESHGUI/SMESHGUI_GroupDlg.cxx

index f20b321cab3ba6430087aed222255ba74ee46914..0f8a797794d16d73bad4a029af4b6ca0c71e16a9 100755 (executable)
@@ -1888,6 +1888,8 @@ void SMESHGUI_FilterDlg::onDeactivate()
 void SMESHGUI_FilterDlg::enterEvent( QEvent* )
 {
 //  mySMESHGUI->EmitSignalDeactivateDialog();
+  mySMESHGUI->SetActiveDialogBox( (QDialog*)this );
+  mySMESHGUI->ResetState();
   setEnabled( true );
 }
 
index 4d7445df36f047f324a43d2e40df1bc07de1c05c..aa3a15cbda1887e3e11e2447ed10742f8f422f19 100644 (file)
@@ -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);
   }
 }