From 1cc4f6c5a964109ef5e09beb10fc4f7c3f06f8b9 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 20 May 2020 20:04:42 +0300 Subject: [PATCH] IPAL54676: TC-9.5.0: Problem with "Radial Quadrangle 1D-2D" algo and "Local Lenght" hypo --- src/StdMeshers/StdMeshers_LayerDistribution.cxx | 1 + .../StdMeshersGUI_LayerDistributionParamWdg.cxx | 11 +++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/StdMeshers/StdMeshers_LayerDistribution.cxx b/src/StdMeshers/StdMeshers_LayerDistribution.cxx index 6304e6dc5..8212547e9 100644 --- a/src/StdMeshers/StdMeshers_LayerDistribution.cxx +++ b/src/StdMeshers/StdMeshers_LayerDistribution.cxx @@ -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; } diff --git a/src/StdMeshersGUI/StdMeshersGUI_LayerDistributionParamWdg.cxx b/src/StdMeshersGUI/StdMeshersGUI_LayerDistributionParamWdg.cxx index 6c7e9b18b..5317368ea 100644 --- a/src/StdMeshersGUI/StdMeshersGUI_LayerDistributionParamWdg.cxx +++ b/src/StdMeshersGUI/StdMeshersGUI_LayerDistributionParamWdg.cxx @@ -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); + } }