diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-04-05 00:51:29 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-04-05 00:51:29 +0200 |
| commit | da908d815787cd0272c8bdeef40e1a4d2f6a29f8 (patch) | |
| tree | 9ac2e4c326f3b4fc9cf6feb11a36970aeb8b1fad /src/wx/content_panel.cc | |
| parent | f02a6f52ec33a4dc6f8f8b6bce9445dcd32fa11a (diff) | |
Fix confusing error on trying to load a DoM project into the player (#1948).
Diffstat (limited to 'src/wx/content_panel.cc')
| -rw-r--r-- | src/wx/content_panel.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/wx/content_panel.cc b/src/wx/content_panel.cc index 7789e7b78..d1859b894 100644 --- a/src/wx/content_panel.cc +++ b/src/wx/content_panel.cc @@ -511,6 +511,14 @@ ContentPanel::add_dcp_clicked () try { _film->examine_and_add_content (make_shared<DCPContent>(path)); + } catch (ProjectFolderError &) { + error_dialog ( + _parent, + _( + "This looks like a DCP-o-matic project folder, which cannot be added to a different project. " + "Choose the DCP directory inside the DCP-o-matic project folder if that's what you want to import." + ) + ); } catch (exception& e) { error_dialog (_parent, e.what()); } |
