From 3c5a2f73afa9a3a5324b0345ffa9642ee474598d Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 5 Jun 2021 00:01:03 +0200 Subject: [PATCH] Give an error if a non-DCP folder is selected for DCP writing (#2024). --- src/tools/dcpomatic_disk.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tools/dcpomatic_disk.cc b/src/tools/dcpomatic_disk.cc index f495ecc41..7e43c0684 100644 --- a/src/tools/dcpomatic_disk.cc +++ b/src/tools/dcpomatic_disk.cc @@ -182,6 +182,11 @@ public: void set_dcp (boost::filesystem::path dcp) { + if (!boost::filesystem::exists(dcp / "ASSETMAP") && !boost::filesystem::exists(dcp / "ASSETMAP.xml")) { + error_dialog (nullptr, _("No ASSETMAP or ASSETMAP.xml found in this folder. Please choose a DCP folder.")); + return; + } + _dcp_path = dcp; _dcp_name->SetLabel (std_to_wx(dcp.filename().string())); } -- 2.30.2