Nag about saving metadata.xml and DCP XMLs when making an encrypted DCP.
authorCarl Hetherington <cth@carlh.net>
Thu, 4 May 2017 10:57:16 +0000 (11:57 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 4 May 2017 10:57:16 +0000 (11:57 +0100)
src/lib/config.h
src/tools/dcpomatic.cc

index f2d224898fce5e3f45ff2bf0d7862c9f0be51aac..3e74a5049b8c0fdd5f86bdcbc7632514a02420a7 100644 (file)
@@ -315,6 +315,7 @@ public:
 
        enum Nag {
                NAG_DKDM_CONFIG,
+               NAG_ENCRYPTED_METADATA,
                NAG_COUNT
        };
 
index 1ced8923b9e3a033c80c4bc361590d2847c6c058..eca9d268960549d423131e3a53d929d17ed6e4bb 100644 (file)
@@ -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 <tt>metadata.xml</tt> file within the film and the metadata files within the DCP.\n\n"
+                                 "You should ensure that these files are <span weight=\"bold\" size=\"larger\">BACKED UP</span> "
+                                 "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);