From bb80004d3201047a33dd251ea6c3f6de2b47cb3b Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 4 May 2017 10:55:53 +0100 Subject: Nag users to backup config.xml if they make a DKDM. --- src/tools/dcpomatic.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/tools') diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc index e9a1f652c..1ced8923b 100644 --- a/src/tools/dcpomatic.cc +++ b/src/tools/dcpomatic.cc @@ -40,6 +40,7 @@ #include "wx/video_waveform_dialog.h" #include "wx/save_template_dialog.h" #include "wx/templates_dialog.h" +#include "wx/nag_dialog.h" #include "lib/film.h" #include "lib/config.h" #include "lib/util.h" @@ -597,6 +598,17 @@ private: return; } + NagDialog::maybe_nag ( + this, + Config::NAG_DKDM_CONFIG, + wxString::Format ( + _("You are making a DKDM which is encrypted by a private key held in" + "\n\n%s\n\nIt is VITALLY IMPORTANT " + "that you BACK UP THIS FILE since if it is lost " + "your DKDMs (and the DCPs they protect) will become useless."), std_to_wx(Config::config_path().string()).data() + ) + ); + optional kdm; try { kdm = _film->make_kdm ( -- cgit v1.2.3