Salome HOME
Fix for bug ( IPAL9603 3.0.0(current2707): SMESH ? edit mesh does not work ).
authormzn <mzn@opencascade.com>
Thu, 28 Jul 2005 13:05:04 +0000 (13:05 +0000)
committermzn <mzn@opencascade.com>
Thu, 28 Jul 2005 13:05:04 +0000 (13:05 +0000)
src/SMESHGUI/SMESHGUI_GroupDlg.cxx

index 2a73bc99384abc66433bf321ce3514d48a7cee34..262e33c5e412b4adc68b8cd5c16bfedaece7e801 100644 (file)
@@ -124,6 +124,9 @@ SMESHGUI_GroupDlg::SMESHGUI_GroupDlg( SMESHGUI* theModule, const char* name,
      myIsBusy( false )
 {
   if (!name) setName("SMESHGUI_GroupDlg");
      myIsBusy( false )
 {
   if (!name) setName("SMESHGUI_GroupDlg");
+
+  mySelector = (SMESH::GetViewWindow( mySMESHGUI ))->GetSelector();
+
   initDialog(false);
   if (!theGroup->_is_nil())
     init(theGroup);
   initDialog(false);
   if (!theGroup->_is_nil())
     init(theGroup);
@@ -131,9 +134,7 @@ SMESHGUI_GroupDlg::SMESHGUI_GroupDlg( SMESHGUI* theModule, const char* name,
     mySelectSubMesh->setEnabled(false);
     mySelectGroup->setEnabled(false);
   }
     mySelectSubMesh->setEnabled(false);
     mySelectGroup->setEnabled(false);
   }
-
-  mySelector = (SMESH::GetViewWindow( mySMESHGUI ))->GetSelector();
-
+  
   /* Move widget on the botton right corner of main widget */
   int x, y ;
   mySMESHGUI->DefineDlgPosition(this, x, y);
   /* Move widget on the botton right corner of main widget */
   int x, y ;
   mySMESHGUI->DefineDlgPosition(this, x, y);