diff --git a/docs/changes.txt b/docs/changes.txt index 2e93e4320a..64fe383693 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -605,6 +605,7 @@ wxMSW: - Fix wxRegion::Offset() with shared objects (Joost Nieuwenhuijse). - Fix wxSocket::Initialize() after Shutdown() (Laurent Poujoulat). - Fix coordinates of EVT_MOUSEWHEEL in frames with toolbars (LtJax). +- Support "show" verb as well as "open" in wxFileType (Eric Jensen). wxOSX: diff --git a/src/msw/mimetype.cpp b/src/msw/mimetype.cpp index 9bd56ad436..84ff99912a 100644 --- a/src/msw/mimetype.cpp +++ b/src/msw/mimetype.cpp @@ -339,6 +339,11 @@ wxFileTypeImpl::GetOpenCommand(wxString *openCmd, { wxString cmd = GetCommand(wxT("open")); + // Some viewers don't define the "open" verb but do define "show" one, try + // to use it as a fallback. + if ( cmd.empty() ) + cmd = GetCommand(wxT("show")); + *openCmd = wxFileType::ExpandCommand(cmd, params); return !openCmd->empty();