diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-12-08 22:17:35 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-12-08 22:17:35 +0000 |
| commit | 2e0c94655f51ea9f01afea57f0c5f9d0f8efeb8d (patch) | |
| tree | 2f70c2b76d1c97c786c3b205f19eb983951c8d02 /src/tools | |
| parent | 29436ead35fbb6041fd24115623cad7638693d8e (diff) | |
swaroop: better handling of missing content in SPLs.
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/dcpomatic_playlist.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/dcpomatic_playlist.cc b/src/tools/dcpomatic_playlist.cc index bac47d6db..ad54e3648 100644 --- a/src/tools/dcpomatic_playlist.cc +++ b/src/tools/dcpomatic_playlist.cc @@ -295,7 +295,8 @@ private: wxFileDialog* d = new wxFileDialog (this, _("Select playlist file"), default_dir, wxEmptyString, wxT("XML files (*.xml)|*.xml")); if (d->ShowModal() == wxID_OK) { _list->DeleteAllItems (); - if (!_playlist.read (wx_to_std(d->GetPath()), _content_dialog)) { + _playlist.read (wx_to_std(d->GetPath()), _content_dialog); + if (!_playlist.missing()) { BOOST_FOREACH (SPLEntry i, _playlist.get()) { add (i); } |
