when attached to a BWindow, make sure that the window sets up pulse messaging, if the view has B_PULSE_NEEDED, fixes Tracker showing 0 items in CountView
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15428 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -4090,6 +4090,17 @@ BView::_Attach()
|
||||
AttachedToWindow();
|
||||
fAttached = true;
|
||||
|
||||
// after giving the view a chance to do this itself,
|
||||
// check for the B_PULSE_NEEDED flag and make sure the
|
||||
// window set's up the pulse messaging
|
||||
if (fOwner) {
|
||||
if (fFlags & B_PULSE_NEEDED) {
|
||||
check_lock_no_pick();
|
||||
if (!fOwner->fPulseEnabled)
|
||||
fOwner->SetPulseRate(500000);
|
||||
}
|
||||
}
|
||||
|
||||
for (BView* child = fFirstChild; child != NULL; child = child->fNextSibling) {
|
||||
// we need to check for fAttached as new views could have been
|
||||
// added in AttachedToWindow() - and those are already attached
|
||||
|
||||
Reference in New Issue
Block a user