IPAL54676: TC-9.5.0: Problem with "Radial Quadrangle 1D-2D" algo and "Local Lenght" hypo

This commit is contained in:
eap 2020-05-20 20:04:42 +03:00
parent b4be5729e0
commit 1cc4f6c5a9
2 changed files with 10 additions and 2 deletions

View 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;
}

View 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);
}
}