BRadioButton: Fix spurious Invoke()

MouseUp(): Don't call SetValue() and Invoke() when the button was
already the selected one.
This commit is contained in:
Ingo Weinhold 2013-12-20 15:21:06 +01:00
parent 49a4700789
commit 57973ac96b

View File

@ -420,9 +420,11 @@ BRadioButton::MouseUp(BPoint point)
fOutlined = Bounds().Contains(point);
if (fOutlined) {
fOutlined = false;
if (Value() != B_CONTROL_ON) {
SetValue(B_CONTROL_ON);
Invoke();
}
}
Invalidate();
SetTracking(false);