소스 검색

Prevent to uncheck selected item with button group

volzhs 8 년 전
부모
커밋
706ca4efd6
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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;