fixed code in OpenURL() to actually use the result of OnOpeningURL()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13870 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-01-28 01:39:55 +00:00
parent 7d6d3bf31e
commit 0423bdc761

View File

@@ -187,15 +187,16 @@ wxFSFile *wxHtmlWinParser::OpenURL(wxHtmlURLType type,
// OnOpeningURL!!
if ( m_Window )
{
wxString redirect;
wxString myurl(url);
wxHtmlOpeningStatus status;
for (;;)
{
if ( m_Window->OnOpeningURL(type, myurl, &redirect) == wxHTML_REDIRECT )
myurl = redirect;
else
wxString redirect;
status = m_Window->OnOpeningURL(type, myurl, &redirect);
if ( status != wxHTML_REDIRECT )
break;
myurl = redirect;
}
if ( status == wxHTML_BLOCK )