From 706ca4efd6d66ab52a86dd65ba245ca6c41adb7a Mon Sep 17 00:00:00 2001 From: volzhs Date: Mon, 10 Apr 2017 13:57:24 +0900 Subject: [PATCH] Prevent to uncheck selected item with button group --- scene/gui/base_button.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scene/gui/base_button.cpp b/scene/gui/base_button.cpp index ee4f8736d77..839dcc36783 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::Element *E = button_group->buttons.front(); E; E = E->next()) { if (E->get() == this) continue;