Newer wxWidgets use the first file extension if the user enters a file name without an extension. mkv should be the one used in this case.

This commit is contained in:
Moritz Bunkus 2005-02-26 19:44:41 +00:00
parent 77f5d2e0f1
commit 811ac73388

View File

@ -812,8 +812,14 @@ void
mmg_dialog::on_browse_output(wxCommandEvent &evt) {
wxFileDialog dlg(NULL, wxT("Choose an output file"), last_open_dir,
tc_output->GetValue().AfterLast(PSEP),
#if wxCHECK_VERSION(2, 5, 0)
wxT("Matroska A/V files (*.mka;*.mkv)|*.mkv;*.mka|"
ALLFILES),
#else
wxT("Matroska A/V files (*.mka;*.mkv)|*.mka;*.mkv|"
ALLFILES), wxSAVE | wxOVERWRITE_PROMPT);
ALLFILES),
#endif
wxSAVE | wxOVERWRITE_PROMPT);
if(dlg.ShowModal() == wxID_OK) {
last_open_dir = dlg.GetDirectory();
tc_output->SetValue(dlg.GetPath());