BRadioButton: Fix spurious Invoke()
MouseUp(): Don't call SetValue() and Invoke() when the button was already the selected one.
This commit is contained in:
parent
49a4700789
commit
57973ac96b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user