From 75b0b0bcae2198a53e093cbaaaa09ec10b62b839 Mon Sep 17 00:00:00 2001 From: Steve Lamerton Date: Mon, 1 Aug 2011 14:05:32 +0000 Subject: [PATCH] Hide the infobar in the sample if we start navigating to another page. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68482 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/web/web.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/samples/web/web.cpp b/samples/web/web.cpp index a97b2b2a5a..2ec69bd83c 100644 --- a/samples/web/web.cpp +++ b/samples/web/web.cpp @@ -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() + "')"); -- 2.45.2