X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d83c04e6a54492ee3fd36be33798c5f4fff73713..a58e8e0cd679651e4d2f9c1b110b79965863fda7:/samples/html/test/test.cpp diff --git a/samples/html/test/test.cpp b/samples/html/test/test.cpp index 56dabce153..c726b60907 100644 --- a/samples/html/test/test.cpp +++ b/samples/html/test/test.cpp @@ -8,11 +8,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#if defined(__GNUG__) && !defined(__APPLE__) - #pragma implementation - #pragma interface -#endif - // For compilers that support precompilation, includes "wx/wx.h". #include "wx/wxprec.h" @@ -239,10 +234,10 @@ void MyFrame::OnPageOpen(wxCommandEvent& WXUNUSED(event)) { #if wxUSE_FILEDLG wxString p = wxFileSelector(_("Open HTML document"), wxEmptyString, - wxEmptyString, wxEmptyString, wxT("HTML files|*.htm")); + wxEmptyString, wxEmptyString, wxT("HTML files|*.htm;*.html")); if (!p.empty()) - m_Html->LoadPage(p); + m_Html->LoadFile(wxFileName(p)); #endif // wxUSE_FILEDLG }