Set focus on the browser window after loading a url. Also fix a warning.

Closes #13660

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69748 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Steve Lamerton
2011-11-13 12:57:28 +00:00
parent d94df7c9ab
commit c49d2434e3

View File

@@ -381,7 +381,7 @@ void WebFrame::UpdateState()
m_url->SetValue( m_browser->GetCurrentURL() );
}
void WebFrame::OnIdle(wxIdleEvent& evt)
void WebFrame::OnIdle(wxIdleEvent& WXUNUSED(evt))
{
if(m_browser->IsBusy())
{
@@ -401,6 +401,7 @@ void WebFrame::OnIdle(wxIdleEvent& evt)
void WebFrame::OnUrl(wxCommandEvent& WXUNUSED(evt))
{
m_browser->LoadURL( m_url->GetValue() );
m_browser->SetFocus();
UpdateState();
}