From f33d6788d71891f91e392d33971dd93a2d231dbc Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Sat, 30 Mar 2002 01:18:52 +0000 Subject: [PATCH] Don't set the longhelp in the statusbar if there isn't one. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14869 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/tbarbase.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/tbarbase.cpp b/src/common/tbarbase.cpp index eb371ebc84..a68b275b1a 100644 --- a/src/common/tbarbase.cpp +++ b/src/common/tbarbase.cpp @@ -525,7 +525,8 @@ void wxToolBarBase::OnMouseEnter(int id) // set the status text anyhow, even if the string is empty: this ensures // that it is cleared when the mouse leaves the toolbar or enters a tool // without help - frame->SetStatusText(helpstring); + if (frame->GetStatusBar()) + frame->SetStatusText(helpstring); } // ----------------------------------------------------------------------------