Browse Source

Merge pull request #8343 from volzhs/prevent_uncheck

Prevent to uncheck selected item with button group
Rémi Verschelde 8 years ago
parent
commit
5939a9b8e8
1 changed files with 2 additions and 0 deletions
  1. 2 0
      scene/gui/base_button.cpp

+ 2 - 0
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;