Salome HOME
INT PAL 0052683: Parameter "Color group" in the "Create Group" dialog box is empty...
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_GroupDlg.cxx
index 2a1c5c49baafbee763edda14fe3ac4798f1028d1..c0dcd49d338459546727b1266f03784931eac334 100644 (file)
@@ -1329,6 +1329,10 @@ void SMESHGUI_GroupDlg::onObjectSelectionChanged()
         // any visible actor of group or submesh of myMesh
         SetAppropriateActor();
 
+        setDefaultGroupColor();
+        if (myName->text().isEmpty())
+          setDefaultName();
+
         aString = aList.First()->getName();
         myMeshGroupLine->setText(aString);
         myMeshGroupLine->home( false );