diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-12-18 22:27:21 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-12-18 22:27:21 +0000 |
| commit | a7125ea9304abfb7207b3007fc9b9625d6e473f5 (patch) | |
| tree | bdbd42153ebf7faebabe9babb6e92a656f396f49 /src | |
| parent | a72e28935d88d569a64f3d08a8791b368dda11d7 (diff) | |
swaroop: force playlists to be saved as .xml.
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/dcpomatic_playlist.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tools/dcpomatic_playlist.cc b/src/tools/dcpomatic_playlist.cc index 0b8f935b3..50f692376 100644 --- a/src/tools/dcpomatic_playlist.cc +++ b/src/tools/dcpomatic_playlist.cc @@ -283,7 +283,9 @@ private: wxString default_dir = c->player_playlist_directory() ? std_to_wx(c->player_playlist_directory()->string()) : wxString(wxEmptyString); wxFileDialog* d = new wxFileDialog (this, _("Select playlist file"), default_dir, wxEmptyString, wxT("XML files (*.xml)|*.xml"), wxFD_SAVE | wxFD_OVERWRITE_PROMPT); if (d->ShowModal() == wxID_OK) { - _playlist.write (wx_to_std(d->GetPath())); + boost::filesystem::path file = wx_to_std (d->GetPath()); + file.replace_extension (".xml"); + _playlist.write (file); } } |
