diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-05-30 20:31:53 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-05-30 20:31:53 +0200 |
| commit | ada78c153ca05c2bd3cefcd4b3497af7dde7ec95 (patch) | |
| tree | aff8805edc083a2339e738ee8a5632abb55dcea5 /src/tools | |
| parent | bcf99dcfcf498d459e60be72aabcf34193fbe4c5 (diff) | |
Don't show warning when only removing an empty DKDM folder (#2541).
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/dcpomatic_kdm.cc | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/tools/dcpomatic_kdm.cc b/src/tools/dcpomatic_kdm.cc index 350494378..6628c2b3f 100644 --- a/src/tools/dcpomatic_kdm.cc +++ b/src/tools/dcpomatic_kdm.cc @@ -732,12 +732,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; + if (removed->contains_dkdm()) { + 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)); |
