From 530dea0f1619582b0246b5c7e1daad06e783b7ff Mon Sep 17 00:00:00 2001 From: leavengood Date: Mon, 27 Dec 2010 23:05:48 +0000 Subject: [PATCH] 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 --- src/apps/webpositive/tabview/TabContainerView.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/apps/webpositive/tabview/TabContainerView.cpp b/src/apps/webpositive/tabview/TabContainerView.cpp index a95136a508..d5269fd699 100644 --- a/src/apps/webpositive/tabview/TabContainerView.cpp +++ b/src/apps/webpositive/tabview/TabContainerView.cpp @@ -464,11 +464,8 @@ TabContainerView::_MouseMoved(BPoint where, uint32 _transit, fLastMouseEventTab = tab; if (fLastMouseEventTab) fLastMouseEventTab->MouseMoved(where, B_ENTERED_VIEW, dragMessage); - else { - SetToolTip(static_cast(NULL)); - HideToolTip(); - SetToolTip("Double-click or middle-click to open new tab."); - } + else + fController->SetToolTip("Double-click or middle-click to open new tab."); } }