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:
@@ -239,6 +239,11 @@ void BRadioButton::MouseDown(BPoint point)
|
|||||||
Flush();
|
Flush();
|
||||||
|
|
||||||
if (Window()->Flags() & B_ASYNCHRONOUS_CONTROLS)
|
if (Window()->Flags() & B_ASYNCHRONOUS_CONTROLS)
|
||||||
|
{
|
||||||
|
SetTracking(true);
|
||||||
|
SetMouseEventMask(B_POINTER_EVENTS, B_LOCK_WINDOW_FOCUS);
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
BRect bounds = Bounds();
|
BRect bounds = Bounds();
|
||||||
uint32 buttons;
|
uint32 buttons;
|
||||||
@@ -273,11 +278,7 @@ void BRadioButton::MouseDown(BPoint point)
|
|||||||
Flush();
|
Flush();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
SetTracking(true);
|
|
||||||
SetMouseEventMask(B_POINTER_EVENTS, B_LOCK_WINDOW_FOCUS);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
void BRadioButton::AttachedToWindow()
|
void BRadioButton::AttachedToWindow()
|
||||||
|
|||||||
Reference in New Issue
Block a user