diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-04-24 11:19:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-24 11:19:14 +0200 |
commit | 5939a9b8e81a799d4b33a8e76f9d9b758e015fb2 (patch) | |
tree | 42d468652b47b022ccd9a961a7e3ac431a3c9f55 /scene/gui/base_button.cpp | |
parent | 5ae1e172da08a63b14635f5d06e32385901525e2 (diff) | |
parent | 706ca4efd6d66ab52a86dd65ba245ca6c41adb7a (diff) |
Merge pull request #8343 from volzhs/prevent_uncheck
Prevent to uncheck selected item with button group
Diffstat (limited to 'scene/gui/base_button.cpp')
-rw-r--r-- | scene/gui/base_button.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/gui/base_button.cpp b/scene/gui/base_button.cpp index ee4f8736d7..839dcc3678 100644 --- a/scene/gui/base_button.cpp +++ b/scene/gui/base_button.cpp @@ -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; |