From a2fe500c74ac7743004e5acb2d01914219e3b9da Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 7 Nov 2005 14:37:54 +0000 Subject: [PATCH] PAL10406. Enable myNodes when a pattern is loaded. UpdatePreview() when elements to refine are selected --- src/SMESHGUI/SMESHGUI_MeshPatternDlg.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/SMESHGUI/SMESHGUI_MeshPatternDlg.cxx b/src/SMESHGUI/SMESHGUI_MeshPatternDlg.cxx index 21db972aa..a3a862b00 100755 --- a/src/SMESHGUI/SMESHGUI_MeshPatternDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_MeshPatternDlg.cxx @@ -739,7 +739,10 @@ void SMESHGUI_MeshPatternDlg::onOkCreationDlg() { myPattern = SMESH::SMESH_Pattern::_duplicate(myCreationDlg->GetPattern()); myName->setText(myCreationDlg->GetPatternName()); + + updateWgState(); displayPreview(); + setEnabled(true); myIsCreateDlgOpen = false; } @@ -933,7 +936,7 @@ void SMESHGUI_MeshPatternDlg::updateWgState() } QValueList ids; - if (!CORBA::is_nil(myPattern) && getIds(ids)) { + if (!CORBA::is_nil(myPattern)/* && getIds(ids)*/) { SMESH::long_array_var keyPoints = myPattern->GetKeyPoints(); if (keyPoints->length()) { myNode1->setEnabled(true); @@ -1278,6 +1281,8 @@ void SMESHGUI_MeshPatternDlg::onTextChanged (const QString& theNewText) } myBusy = false; + + displayPreview(); } //======================================================================= -- 2.39.2