diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-05-04 10:55:53 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-05-04 10:55:53 +0100 |
| commit | bb80004d3201047a33dd251ea6c3f6de2b47cb3b (patch) | |
| tree | 8b2520011c7d5f346c2725bb23a551b872850050 /src/tools | |
| parent | 9b1fb6530563dfd8f32a8568d26c768b1006de90 (diff) | |
Nag users to backup config.xml if they make a DKDM.
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/dcpomatic.cc | 12 |
1 files changed, 12 insertions, 0 deletions
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<tt>%s</tt>\n\nIt is <span weight=\"bold\" size=\"larger\">VITALLY IMPORTANT</span> " + "that you <span weight=\"bold\" size=\"larger\">BACK UP THIS FILE</span> since if it is lost " + "your DKDMs (and the DCPs they protect) will become useless."), std_to_wx(Config::config_path().string()).data() + ) + ); + optional<dcp::EncryptedKDM> kdm; try { kdm = _film->make_kdm ( |
