diff --git a/platform/platform-api/src/com/intellij/ui/components/JBOptionButton.java b/platform/platform-api/src/com/intellij/ui/components/JBOptionButton.java index 50820a507c97..b6dcf1bcf89d 100644 --- a/platform/platform-api/src/com/intellij/ui/components/JBOptionButton.java +++ b/platform/platform-api/src/com/intellij/ui/components/JBOptionButton.java @@ -144,7 +144,7 @@ public class JBOptionButton extends JButton implements Weighted { Action selection = actionToSelect; if (selection == null && myOptions.length > 0 && ensureSelection) { - selection = getAction(); + selection = myOptions[0]; } if (selection == null) return;