Merge pull request #61185 from okla/3.x

This commit is contained in:
Rémi Verschelde 2022-05-19 12:02:14 +02:00 committed by GitHub
commit 78a9d21da3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -258,12 +258,9 @@ int OptionButton::get_selected() const {
}
int OptionButton::get_selected_id() const {
int idx = get_selected();
if (idx < 0) {
return 0;
}
return get_item_id(current);
}
Variant OptionButton::get_selected_metadata() const {
int idx = get_selected();
if (idx < 0) {