Merge pull request #8343 from volzhs/prevent_uncheck
Prevent to uncheck selected item with button group
This commit is contained in:
commit
5939a9b8e8
|
@ -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 New Issue