another compilation fix for wxUSE_MIMETYPE==0

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34621 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-06-09 21:52:20 +00:00
parent be9b1dcaf4
commit 492b6f0a6f

View File

@@ -439,13 +439,20 @@ void wxDebugReportDialog::OnOpen(wxCommandEvent& )
// if we don't have place marker for file name in the command... // if we don't have place marker for file name in the command...
wxString cmd = dlg.GetCommand(); wxString cmd = dlg.GetCommand();
if ( cmd.find(_T('%')) == wxString::npos ) if ( !cmd.empty() )
{ {
// ...add it #if wxUSE_MIMETYPE
cmd += _T(" \"%s\""); if ( cmd.find(_T('%')) != wxString::npos )
{
command = wxFileType::ExpandCommand(cmd, fn.GetFullPath());
}
else // no %s nor %1
#endif // wxUSE_MIMETYPE
{
// append the file name to the end
command << cmd << _T(" \"") << fn.GetFullPath() << _T('"');
}
} }
command = wxFileType::ExpandCommand(cmd, fn.GetFullPath());
} }
} }