Merge pull request #8343 from volzhs/prevent_uncheck

Prevent to uncheck selected item with button group
This commit is contained in:
Rémi Verschelde 2017-04-24 11:19:14 +02:00 committed by GitHub
commit 5939a9b8e8
1 changed files with 2 additions and 0 deletions

View File

@ -38,6 +38,8 @@ void BaseButton::_unpress_group() {
if (!button_group.is_valid())
return;
status.pressed = true;
for (Set<BaseButton *>::Element *E = button_group->buttons.front(); E; E = E->next()) {
if (E->get() == this)
continue;