Add some useful selectors in the add file dialog.
authorCarl Hetherington <cth@carlh.net>
Thu, 26 Nov 2015 09:44:23 +0000 (09:44 +0000)
committerCarl Hetherington <cth@carlh.net>
Thu, 26 Nov 2015 09:44:23 +0000 (09:44 +0000)
src/wx/content_panel.cc

index a84698032c673543a4e3ba8c704f73afaad7cd7f..59886229c9be06892c6e646e70e8be2d7b722985 100644 (file)
@@ -245,7 +245,7 @@ ContentPanel::add_file_clicked ()
        /* The wxFD_CHANGE_DIR here prevents a `could not set working directory' error 123 on Windows when using
           non-Latin filenames or paths.
        */
-       wxFileDialog* d = new wxFileDialog (_panel, _("Choose a file or files"), wxT (""), wxT (""), wxT ("*.*"), wxFD_MULTIPLE | wxFD_CHANGE_DIR);
+       wxFileDialog* d = new wxFileDialog (_panel, _("Choose a file or files"), wxT (""), wxT (""), wxT ("All files|*.*|Subtitle files|*.srt;*.xml|Audio files|*.wav;*.w64;*.flac;*.aif;*.aiff"), wxFD_MULTIPLE | wxFD_CHANGE_DIR);
        int const r = d->ShowModal ();
 
        if (r != wxID_OK) {