diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-01-16 00:33:05 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-01-16 21:33:29 +0100 |
| commit | d464a939f9f851e835b2a4926fafd6eadaa183de (patch) | |
| tree | 824a491f85ef056d401b37f006bbced3f63919a5 /src/wx/export_video_file_dialog.cc | |
| parent | 4790b63ceadc38fba77954f531a455fff28f8b13 (diff) | |
Cleanup: rename some methods in FilePickerCtrl and use boost::filesystem::path more.
Diffstat (limited to 'src/wx/export_video_file_dialog.cc')
| -rw-r--r-- | src/wx/export_video_file_dialog.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wx/export_video_file_dialog.cc b/src/wx/export_video_file_dialog.cc index 208481225..8b01282b6 100644 --- a/src/wx/export_video_file_dialog.cc +++ b/src/wx/export_video_file_dialog.cc @@ -97,7 +97,7 @@ ExportVideoFileDialog::ExportVideoFileDialog (wxWindow* parent, string name) so disable its check and the caller will have to do it themselves. */ _file = new FilePickerCtrl (this, _("Select output file"), format_filters[0], false, false); - _file->SetPath (_initial_name); + _file->set_path(_initial_name); add (_file); for (int i = 0; i < FORMATS; ++i) { @@ -167,8 +167,8 @@ ExportVideoFileDialog::format_changed () { auto const selection = _format->GetSelection(); DCPOMATIC_ASSERT (selection >= 0 && selection < FORMATS); - _file->SetWildcard (format_filters[selection]); - _file->SetPath (_initial_name); + _file->set_wildcard(format_filters[selection]); + _file->set_path(_initial_name); _x264_crf->Enable (formats[selection] == ExportFormat::H264_AAC); for (int i = 0; i < 2; ++i) { _x264_crf_label[i]->Enable(formats[selection] == ExportFormat::H264_AAC); @@ -180,7 +180,7 @@ ExportVideoFileDialog::format_changed () boost::filesystem::path ExportVideoFileDialog::path () const { - wxFileName fn (_file->GetPath()); + wxFileName fn(std_to_wx(_file->path().string())); fn.SetExt (format_extensions[_format->GetSelection()]); return wx_to_std (fn.GetFullPath()); } |
