]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
PAL10406. Enable myNodes when a pattern is loaded. UpdatePreview() when elements...
authoreap <eap@opencascade.com>
Mon, 7 Nov 2005 14:37:54 +0000 (14:37 +0000)
committereap <eap@opencascade.com>
Mon, 7 Nov 2005 14:37:54 +0000 (14:37 +0000)
src/SMESHGUI/SMESHGUI_MeshPatternDlg.cxx

index 21db972aa9133cef0f3edcf4d446a1d5410b22bf..a3a862b00609ce6a7074cfde7e6087f2f619ca39 100755 (executable)
@@ -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<int> 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();
 }
 
 //=======================================================================