summaryrefslogtreecommitdiff
path: root/scene/gui/option_button.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-04-10 08:09:18 +0200
committerGitHub <noreply@github.com>2018-04-10 08:09:18 +0200
commita360a9b3482ba6927b5f6b4d5debff2222b5ab2c (patch)
treed181f4c39f18f74606b7478e0185fcfa3e101c73 /scene/gui/option_button.cpp
parentb1d4e1be6dc6fbe839d0eb57c71e502df333c1fa (diff)
parentb964a9e678a969bdc28972c55655d7f0667d68b7 (diff)
Merge pull request #18091 from RandomShaper/icon-radio-item
Add support for radio-looking items with icon
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 aaad10f579..a9402d6404 100644
--- a/scene/gui/option_button.cpp
+++ b/scene/gui/option_button.cpp
@@ -112,7 +112,7 @@ void OptionButton::pressed() {
void OptionButton::add_icon_item(const Ref<Texture> &p_icon, const String &p_label, int p_ID) {
- popup->add_icon_check_item(p_icon, p_label, p_ID);
+ popup->add_icon_radio_check_item(p_icon, p_label, p_ID);
if (popup->get_item_count() == 1)
select(0);
}