#63 setRequiresSelection
[nikiroo-utils.git] / src / jexer / TRadioGroup.java
index 7f8c99c404e31c410aa6b4ad1a0f7dda17606c20..bfea5d6122356f171fb3cf30649bae93170c6729 100644 (file)
@@ -239,7 +239,7 @@ public class TRadioGroup extends TWidget {
     public void setRequiresSelection(final boolean requiresSelection) {
         this.requiresSelection = requiresSelection;
         if (requiresSelection) {
-            if (getChildren().size() > 0) {
+            if ((getChildren().size() > 0) && (selectedButton == null)) {
                 setSelected(1);
             }
         }