_selected_playlist = boost::none;
_spl_view->SetItemState (selected, 0, wxLIST_STATE_SELECTED);
}
+ ResetFilm (shared_ptr<Film>(new Film(optional<boost::filesystem::path>())));
}
void
}
if (dcp->needs_kdm()) {
/* We didn't get a KDM for this */
- error_dialog (this, "This playlist cannot be loaded as a KDM is missing.");
+ error_dialog (this, "This playlist cannot be loaded as a KDM is missing or incorrect.");
deselect_playlist ();
return;
}
ffmpeg->add_kdm (*kdm);
ffmpeg->examine (_film, shared_ptr<Job>());
} catch (KDMError& e) {
- error_dialog (this, "Could not load KDM.");
+ error_dialog (this, "This playlist cannot be loaded as a KDM is missing or incorrect.");
+ deselect_playlist ();
+ return;
}
} else {
- error_dialog (this, "This playlist cannot be loaded as a KDM is missing.");
+ error_dialog (this, "This playlist cannot be loaded as a KDM is missing or incorrect.");
deselect_playlist ();
return;
}