summaryrefslogtreecommitdiff
path: root/scene/gui/base_button.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-04-24 11:19:14 +0200
committerGitHub <noreply@github.com>2017-04-24 11:19:14 +0200
commit5939a9b8e81a799d4b33a8e76f9d9b758e015fb2 (patch)
tree42d468652b47b022ccd9a961a7e3ac431a3c9f55 /scene/gui/base_button.cpp
parent5ae1e172da08a63b14635f5d06e32385901525e2 (diff)
parent706ca4efd6d66ab52a86dd65ba245ca6c41adb7a (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.cpp2
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;