diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-03-28 00:12:01 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-05-06 21:30:22 +0100 |
| commit | 79699705bd01b9bfb13d00271f2106d851640422 (patch) | |
| tree | ad139ee85b3f359f11fc22cd200721cc6231a74d /src/tools | |
| parent | 3e9664dbf116aa0dec6b6c75f27b9ef1ea727432 (diff) | |
Nag about deletion of DKDMs.
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/dcpomatic_kdm.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/tools/dcpomatic_kdm.cc b/src/tools/dcpomatic_kdm.cc index 3b97fa2da..2b0d25836 100644 --- a/src/tools/dcpomatic_kdm.cc +++ b/src/tools/dcpomatic_kdm.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2015-2017 Carl Hetherington <cth@carlh.net> + Copyright (C) 2015-2019 Carl Hetherington <cth@carlh.net> This file is part of DCP-o-matic. @@ -33,6 +33,7 @@ #include "wx/editable_list.h" #include "wx/static_text.h" #include "wx/dcpomatic_button.h" +#include "wx/nag_dialog.h" #include "lib/config.h" #include "lib/util.h" #include "lib/screen.h" @@ -523,6 +524,14 @@ private: return; } + if (NagDialog::maybe_nag ( + this, Config::NAG_DELETE_DKDM, + _("You are about to remove a DKDM. This will make it impossible to decrypt the DCP that the DKDM was made for, and it cannot be undone. " + "Are you sure?"), + true)) { + return; + } + _dkdm->Delete (dkdm_to_id (removed)); shared_ptr<DKDMGroup> dkdms = Config::instance()->dkdms (); dkdms->remove (removed); |
