allow opening .html files, too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36571 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -234,7 +234,7 @@ void MyFrame::OnPageOpen(wxCommandEvent& WXUNUSED(event))
|
|||||||
{
|
{
|
||||||
#if wxUSE_FILEDLG
|
#if wxUSE_FILEDLG
|
||||||
wxString p = wxFileSelector(_("Open HTML document"), wxEmptyString,
|
wxString p = wxFileSelector(_("Open HTML document"), wxEmptyString,
|
||||||
wxEmptyString, wxEmptyString, wxT("HTML files|*.htm"));
|
wxEmptyString, wxEmptyString, wxT("HTML files|*.htm;*.html"));
|
||||||
|
|
||||||
if (!p.empty())
|
if (!p.empty())
|
||||||
m_Html->LoadFile(wxFileName(p));
|
m_Html->LoadFile(wxFileName(p));
|
||||||
|
Reference in New Issue
Block a user