mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-24 20:01:53 +00:00
Fix parameter order for the wxFileDialog class. Otherwise the default directory will not be set.
This commit is contained in:
parent
520c4122af
commit
161d3ebaa7
@ -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
|
||||
|
@ -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) {
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user