diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-11-30 01:18:09 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-11-30 01:18:09 +0000 |
| commit | 1d08c7b46a8d8ef99e4fbd14225dcdf9f6cb4667 (patch) | |
| tree | c503db5b26821ab8ac12a170d74605b2829be4f7 /src/tools | |
| parent | 012df6081df5ff8862975797dc1357b9b5d49558 (diff) | |
swaroop: fix load of playlist.
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/dcpomatic_playlist.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tools/dcpomatic_playlist.cc b/src/tools/dcpomatic_playlist.cc index 2bb9ec2a7..a81c0b730 100644 --- a/src/tools/dcpomatic_playlist.cc +++ b/src/tools/dcpomatic_playlist.cc @@ -290,7 +290,11 @@ private: wxFileDialog* d = new wxFileDialog (this, _("Select playlist file"), wxEmptyString, wxEmptyString, wxT("XML files (*.xml)|*.xml")); if (d->ShowModal() == wxID_OK) { _list->DeleteAllItems (); - if (_playlist.read (wx_to_std(d->GetPath()), _content_dialog)) { + if (!_playlist.read (wx_to_std(d->GetPath()), _content_dialog)) { + BOOST_FOREACH (SPLEntry i, _playlist.get()) { + add (i); + } + } else { error_dialog (this, _("Some content in this playlist was not found.")); } } |
