]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't set the longhelp in the statusbar if there isn't one.
authorRobin Dunn <robin@alldunn.com>
Sat, 30 Mar 2002 01:18:52 +0000 (01:18 +0000)
committerRobin Dunn <robin@alldunn.com>
Sat, 30 Mar 2002 01:18:52 +0000 (01:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14869 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/tbarbase.cpp

index eb371ebc84ab7f8cf6e34d052bf8fa74f6f56b77..a68b275b1acb842bf04463d6f6e061ab9a743b1c 100644 (file)
@@ -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);
 }
 
 // ----------------------------------------------------------------------------