summaryrefslogtreecommitdiff
path: root/scene/gui/option_button.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2018-04-07 16:41:39 -0300
committerGitHub <noreply@github.com>2018-04-07 16:41:39 -0300
commit187b14ae2423f791256710c819cb0401d87670c2 (patch)
treee5f957e0b9d7cd793fbfc3fabfa8a7853e7b99ee /scene/gui/option_button.cpp
parent1570a72eee4bc0efb46cc2185c44a12a0aa57943 (diff)
parenta6dc160d5cdf581c61d9c0ecd042aa7b5e958a87 (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.cpp2
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);
}