X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTRadioGroup.java;h=bfea5d6122356f171fb3cf30649bae93170c6729;hb=0580bf2c756853c189f2abbe9c500a8ae2d46e23;hp=7f8c99c404e31c410aa6b4ad1a0f7dda17606c20;hpb=b2efac6ed4525f77cbcb717a082d3a2884c91936;p=fanfix.git diff --git a/src/jexer/TRadioGroup.java b/src/jexer/TRadioGroup.java index 7f8c99c..bfea5d6 100644 --- a/src/jexer/TRadioGroup.java +++ b/src/jexer/TRadioGroup.java @@ -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); } }