]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/htmlwin.cpp
fixed the menu bug introduced by the previous commit
[wxWidgets.git] / src / html / htmlwin.cpp
index 9625513f476cfb0807293bde4029163f23c6a752..212d556d99a677dfde76fcde9b34e73dc02faf61 100644 (file)
@@ -263,13 +263,7 @@ bool wxHtmlWindow::LoadPage(const wxString& location)
             Refresh(FALSE);
         }
         
-        if ( !m_Parser->CanOpenURL(location) )
-        {
-            wxLogError(_("Access denied to document '%s'!"), location.c_str());
-            return FALSE;
-        }
-
-        f = m_FS->OpenFile(location);
+        f = m_Parser->OpenURL(wxHTML_URL_PAGE, location);
 
         if (f == NULL)
         {