Merge pull request #8343 from volzhs/prevent_uncheck
Prevent to uncheck selected item with button group
This commit is contained in:
commit
5939a9b8e8
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue