Let the controller handle setting the default tool tip for the tab bar so it

knows the state changed. A good example of where using a controller-based
design can't be done halfway. It took me way too long to debug this (that
mostly being my fault.)

Fixes #6382.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@556 94f232f2-1747-11df-bad5-a5bfde151594
This commit is contained in:
leavengood 2010-12-27 23:05:48 +00:00 committed by Alexandre Deckner
parent 8d1fc88170
commit 530dea0f16

View File

@ -464,11 +464,8 @@ TabContainerView::_MouseMoved(BPoint where, uint32 _transit,
fLastMouseEventTab = tab; fLastMouseEventTab = tab;
if (fLastMouseEventTab) if (fLastMouseEventTab)
fLastMouseEventTab->MouseMoved(where, B_ENTERED_VIEW, dragMessage); fLastMouseEventTab->MouseMoved(where, B_ENTERED_VIEW, dragMessage);
else { else
SetToolTip(static_cast<BToolTip*>(NULL)); fController->SetToolTip("Double-click or middle-click to open new tab.");
HideToolTip();
SetToolTip("Double-click or middle-click to open new tab.");
}
} }
} }