]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
IPAL54676: TC-9.5.0: Problem with "Radial Quadrangle 1D-2D" algo and "Local Lenght...
authoreap <eap@opencascade.com>
Wed, 20 May 2020 17:04:42 +0000 (20:04 +0300)
committereap <eap@opencascade.com>
Wed, 20 May 2020 17:04:42 +0000 (20:04 +0300)
src/StdMeshers/StdMeshers_LayerDistribution.cxx
src/StdMeshersGUI/StdMeshersGUI_LayerDistributionParamWdg.cxx

index 6304e6dc5cb4086fa24f9243d807d56dfa6e59fc..8212547e99ec3690175a74457b73af072302bf01 100644 (file)
@@ -94,6 +94,7 @@ void StdMeshers_LayerDistribution::SetLayerDistribution(SMESH_Hypothesis* hyp1D)
 
 ostream & StdMeshers_LayerDistribution::SaveTo(ostream & save)
 {
+  save << "StdMeshers_LayerDistribution"; // just to enable "Edit" in pop-up menu
   return save;
 }
 
index 6c7e9b18bede49246837bb4de0103f66bad909c4..5317368eadc4a9f3fe7896b6fe81bc82d92f08cd 100644 (file)
@@ -207,7 +207,11 @@ void StdMeshersGUI_LayerDistributionParamWdg::onEdit()
   if ( !editor ) return;
 
   if ( myDlg )
-    myDlg->hide();
+  {
+    //myDlg->hide(); -- pb: show() does not work
+    myDlg->setWindowTitle( tr( "SMESH_HYPOTHESIS" ));
+    myDlg->setEnabled(false);
+  }
 
   try {
     QWidget* parent = this;
@@ -223,5 +227,8 @@ void StdMeshersGUI_LayerDistributionParamWdg::onEdit()
 void StdMeshersGUI_LayerDistributionParamWdg::onEdited( int result )
 {
   if ( myDlg )
-    myDlg->show();
+  {
+    //myDlg->show(); does not work
+    myDlg->setEnabled(true);
+  }
 }