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
This commit is contained in:
Steve Lamerton
2011-08-01 14:05:32 +00:00
parent b7d74e9ca3
commit 75b0b0bcae

View 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() + "')");