From 811ac733885a6bd42dadcb541ac63012e2cc24c4 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sat, 26 Feb 2005 19:44:41 +0000 Subject: [PATCH] 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. --- src/mmg/mmg.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/mmg/mmg.cpp b/src/mmg/mmg.cpp index 734d6ed2a..cb56c331b 100644 --- a/src/mmg/mmg.cpp +++ b/src/mmg/mmg.cpp @@ -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());