projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Nag about deletion of DKDMs.
[dcpomatic.git]
/
src
/
tools
/
dcpomatic_kdm.cc
diff --git
a/src/tools/dcpomatic_kdm.cc
b/src/tools/dcpomatic_kdm.cc
index 3b97fa2da2cb57882eb0ab7c29421ee27182e103..2b0d25836dbf4cb0e77234f09a2fe10e99ef5f1f 100644
(file)
--- a/
src/tools/dcpomatic_kdm.cc
+++ b/
src/tools/dcpomatic_kdm.cc
@@
-1,5
+1,5
@@
/*
/*
- Copyright (C) 2015-201
7
Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2015-201
9
Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
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/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"
#include "lib/config.h"
#include "lib/util.h"
#include "lib/screen.h"
@@
-523,6
+524,14
@@
private:
return;
}
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);
_dkdm->Delete (dkdm_to_id (removed));
shared_ptr<DKDMGroup> dkdms = Config::instance()->dkdms ();
dkdms->remove (removed);