diff options
author | Juan Linietsky <reduzio@gmail.com> | 2018-04-07 16:41:39 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-07 16:41:39 -0300 |
commit | 187b14ae2423f791256710c819cb0401d87670c2 (patch) | |
tree | e5f957e0b9d7cd793fbfc3fabfa8a7853e7b99ee /scene/gui/option_button.cpp | |
parent | 1570a72eee4bc0efb46cc2185c44a12a0aa57943 (diff) | |
parent | a6dc160d5cdf581c61d9c0ecd042aa7b5e958a87 (diff) |
Merge pull request #17730 from RandomShaper/radio-buttons-in-menus
Radio buttons in menus
Diffstat (limited to 'scene/gui/option_button.cpp')
-rw-r--r-- | scene/gui/option_button.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/option_button.cpp b/scene/gui/option_button.cpp index 6e53f11b99..aaad10f579 100644 --- a/scene/gui/option_button.cpp +++ b/scene/gui/option_button.cpp @@ -118,7 +118,7 @@ void OptionButton::add_icon_item(const Ref<Texture> &p_icon, const String &p_lab } void OptionButton::add_item(const String &p_label, int p_ID) { - popup->add_check_item(p_label, p_ID); + popup->add_radio_check_item(p_label, p_ID); if (popup->get_item_count() == 1) select(0); } |