X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fcontent_panel.cc;h=d1859b894e1c34a8f391ed7dc0c19b9daedf2ade;hb=2a616640a07662410d6e5f986a692281fdc3c744;hp=7789e7b786b4fc8366b3d10f32d24d21bf1406a9;hpb=f02a6f52ec33a4dc6f8f8b6bce9445dcd32fa11a;p=dcpomatic.git 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(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()); }