]> git.saurik.com Git - wxWidgets.git/commitdiff
Hide the infobar in the sample if we start navigating to another page.
authorSteve Lamerton <steve.lamerton@gmail.com>
Mon, 1 Aug 2011 14:05:32 +0000 (14:05 +0000)
committerSteve Lamerton <steve.lamerton@gmail.com>
Mon, 1 Aug 2011 14:05:32 +0000 (14:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68482 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/web/web.cpp

index a97b2b2a5ab1f4648b2ca9b7d5110207db01c506..2ec69bd83cb63324e4d1a66d15b348269f335da5 100644 (file)
@@ -468,6 +468,11 @@ void WebFrame::OnMode(wxCommandEvent& WXUNUSED(evt))
   */
 void WebFrame::OnNavigationRequest(wxWebNavigationEvent& evt)
 {
+    if(m_info->IsShown())
+    {
+        m_info->Show(false);
+    }
+
     wxLogMessage("%s", "Navigation request to '" + evt.GetURL() + "' (target='" +
     evt.GetTarget() + "')");