diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-05-23 11:53:01 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-05-23 11:53:01 +0100 |
| commit | 494c263c852d1e37be809920cb72e76a29c4ef08 (patch) | |
| tree | e9dc4ce1c0201a58c17306e11a69515b160754be /src | |
| parent | 7659ccaf9e5624e4fba40fb4f9d68f8c402203bd (diff) | |
Fix find-missing-content.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/content_menu.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/wx/content_menu.cc b/src/wx/content_menu.cc index 429699956..174d625b8 100644 --- a/src/wx/content_menu.cc +++ b/src/wx/content_menu.cc @@ -300,7 +300,11 @@ ContentMenu::find_missing () list<shared_ptr<Content> > content; if (r == wxID_OK) { - content = content_factory (film, path); + if (dc) { + content.push_back (shared_ptr<DCPContent> (new DCPContent (film, path))); + } else { + content = content_factory (film, path); + } } if (content.empty ()) { @@ -355,7 +359,7 @@ ContentMenu::maybe_found_missing (weak_ptr<Job> j, weak_ptr<Content> oc, weak_pt return; } - old_content->set_path (new_content->path (0)); + old_content->set_paths (new_content->paths()); } void |
