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:23:45 +01:00
parent 49a4700789
commit 57973ac96b
+4 -2
View File
@@ -420,8 +420,10 @@ BRadioButton::MouseUp(BPoint point)
fOutlined = Bounds().Contains(point);
if (fOutlined) {
fOutlined = false;
SetValue(B_CONTROL_ON);
Invoke();
if (Value() != B_CONTROL_ON) {
SetValue(B_CONTROL_ON);
Invoke();
}
}
Invalidate();