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:
Stefano Ceccherini 2004-10-20 11:15:37 +00:00
parent 3433f318e0
commit 9199a3397b

View File

@ -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()