swaroop: fix load of playlist.
authorCarl Hetherington <cth@carlh.net>
Fri, 30 Nov 2018 01:18:09 +0000 (01:18 +0000)
committerCarl Hetherington <cth@carlh.net>
Fri, 30 Nov 2018 01:18:09 +0000 (01:18 +0000)
src/tools/dcpomatic_playlist.cc

index 2bb9ec2..a81c0b7 100644 (file)
@@ -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."));
                        }
                }