From 2ff11f911be705b33c272cee0c8a42594e7bcd84 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 4 May 2017 11:57:16 +0100 Subject: [PATCH] Nag about saving metadata.xml and DCP XMLs when making an encrypted DCP. --- src/lib/config.h | 1 + src/tools/dcpomatic.cc | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/src/lib/config.h b/src/lib/config.h index f2d224898..3e74a5049 100644 --- a/src/lib/config.h +++ b/src/lib/config.h @@ -315,6 +315,7 @@ public: enum Nag { NAG_DKDM_CONFIG, + NAG_ENCRYPTED_METADATA, NAG_COUNT }; diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc index 1ced8923b..eca9d2689 100644 --- a/src/tools/dcpomatic.cc +++ b/src/tools/dcpomatic.cc @@ -497,6 +497,16 @@ private: } } + if (_film->encrypted ()) { + NagDialog::maybe_nag ( + this, + Config::NAG_ENCRYPTED_METADATA, + _("You are making an encrypted DCP. It will not be possible to make KDMs for this DCP unless you have copies of " + "the metadata.xml file within the film and the metadata files within the DCP.\n\n" + "You should ensure that these files are BACKED UP " + "if you want to make KDMs for this film.") + ); + } /* Remove any existing DCP if the user agrees */ boost::filesystem::path const dcp_dir = _film->dir (_film->dcp_name(), false); -- 2.30.2