Synchronous and asynchronous MouseDown() code was wrongly placed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9436 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
3433f318e0
commit
9199a3397b
@ -239,6 +239,11 @@ void BRadioButton::MouseDown(BPoint point)
|
||||
Flush();
|
||||
|
||||
if (Window()->Flags() & B_ASYNCHRONOUS_CONTROLS)
|
||||
{
|
||||
SetTracking(true);
|
||||
SetMouseEventMask(B_POINTER_EVENTS, B_LOCK_WINDOW_FOCUS);
|
||||
}
|
||||
else
|
||||
{
|
||||
BRect bounds = Bounds();
|
||||
uint32 buttons;
|
||||
@ -273,11 +278,7 @@ void BRadioButton::MouseDown(BPoint point)
|
||||
Flush();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
SetTracking(true);
|
||||
SetMouseEventMask(B_POINTER_EVENTS, B_LOCK_WINDOW_FOCUS);
|
||||
}
|
||||
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
void BRadioButton::AttachedToWindow()
|
||||
|
Loading…
x
Reference in New Issue
Block a user