From ada78c153ca05c2bd3cefcd4b3497af7dde7ec95 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 30 May 2023 20:31:53 +0200 Subject: Don't show warning when only removing an empty DKDM folder (#2541). --- src/lib/dkdm_wrapper.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/lib/dkdm_wrapper.h') diff --git a/src/lib/dkdm_wrapper.h b/src/lib/dkdm_wrapper.h index d15f017c5..7182e5e85 100644 --- a/src/lib/dkdm_wrapper.h +++ b/src/lib/dkdm_wrapper.h @@ -38,6 +38,8 @@ public: virtual ~DKDMBase () {} virtual std::string name () const = 0; virtual void as_xml (xmlpp::Element *) const = 0; + /** @return true if this thing is, or contains, any actual DKDM */ + virtual bool contains_dkdm() const = 0; static std::shared_ptr read (cxml::ConstNodePtr node); @@ -63,6 +65,9 @@ public: std::string name () const override; void as_xml (xmlpp::Element *) const override; + bool contains_dkdm() const override { + return true; + } dcp::EncryptedKDM dkdm () const { return _dkdm; @@ -86,6 +91,8 @@ public: void as_xml (xmlpp::Element *) const override; + bool contains_dkdm() const override; + std::list> children () const { return _children; } -- cgit v1.2.3