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,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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user