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."));
}
}