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);
|
fOutlined = Bounds().Contains(point);
|
||||||
if (fOutlined) {
|
if (fOutlined) {
|
||||||
fOutlined = false;
|
fOutlined = false;
|
||||||
|
if (Value() != B_CONTROL_ON) {
|
||||||
SetValue(B_CONTROL_ON);
|
SetValue(B_CONTROL_ON);
|
||||||
Invoke();
|
Invoke();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
Invalidate();
|
Invalidate();
|
||||||
|
|
||||||
SetTracking(false);
|
SetTracking(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user