FIX: Open New WebTab in Local Browser
JIRA: none Change-Id: I62baf32ec4ebb3130fe1721dbecbae8ed2533423
This commit is contained in:
parent
8d65ede5e0
commit
ba35ed5938
|
@ -1021,10 +1021,11 @@ void WebViewPanel::OnNewWindow(wxWebViewEvent& evt)
|
||||||
if (wxGetApp().get_mode() == comDevelop)
|
if (wxGetApp().get_mode() == comDevelop)
|
||||||
wxLogMessage("%s", "New window; url='" + evt.GetURL() + "'" + flag);
|
wxLogMessage("%s", "New window; url='" + evt.GetURL() + "'" + flag);
|
||||||
|
|
||||||
//If we handle new window events then just load them in this window as we
|
//If we handle new window events then just load them in local browser
|
||||||
//are a single window browser
|
if (m_tools_handle_new_window->IsChecked())
|
||||||
if (m_tools_handle_new_window->IsChecked())
|
{
|
||||||
m_browser->LoadURL(evt.GetURL());
|
wxLaunchDefaultBrowser(evt.GetURL());
|
||||||
|
}
|
||||||
|
|
||||||
UpdateState();
|
UpdateState();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue