Fix parameter order for the wxFileDialog class. Otherwise the default directory will not be set.

This commit is contained in:
Moritz Bunkus 2004-02-21 17:12:00 +00:00
parent 520c4122af
commit 161d3ebaa7
3 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2004-02-21 Moritz Bunkus <moritz@bunkus.org>
* mmg: bug fix: For some 'browse file' buttons the default
directory was not set to the last directory a file was selected
from.
2004-02-16 Moritz Bunkus <moritz@bunkus.org>
* mmg: new feature: Added a function for adjusting the chapter

View File

@ -103,7 +103,7 @@ void tab_attachments::on_add_attachment(wxCommandEvent &evt) {
uint32_t i, j;
vector<string> extensions;
wxFileDialog dlg(NULL, "Choose an attachment file", "", last_open_dir,
wxFileDialog dlg(NULL, "Choose an attachment file", last_open_dir, "",
_T(ALLFILES), wxOPEN);
if(dlg.ShowModal() == wxID_OK) {

View File

@ -929,7 +929,7 @@ void tab_input::on_browse_tags(wxCommandEvent &evt) {
if ((selected_file == -1) || (selected_track == -1))
return;
wxFileDialog dlg(NULL, "Choose a tag file", "", last_open_dir,
wxFileDialog dlg(NULL, "Choose a tag file", last_open_dir, "",
_T("Tag files (*.xml;*.txt)|*.xml;*.txt|" ALLFILES),
wxOPEN);
if(dlg.ShowModal() == wxID_OK) {
@ -943,7 +943,7 @@ void tab_input::on_browse_timecodes_clicked(wxCommandEvent &evt) {
if ((selected_file == -1) || (selected_track == -1))
return;
wxFileDialog dlg(NULL, "Choose a timecodes file", "", last_open_dir,
wxFileDialog dlg(NULL, "Choose a timecodes file", last_open_dir, "",
_T("Tag files (*.txt)|*.txt|" ALLFILES), wxOPEN);
if(dlg.ShowModal() == wxID_OK) {
last_open_dir = dlg.GetDirectory();