+ bool encrypted = false;
+ BOOST_FOREACH (cxml::ConstNodePtr i, cpl_document.node_children("ReelList")) {
+ BOOST_FOREACH (cxml::ConstNodePtr j, i->node_children("Reel")) {
+ BOOST_FOREACH (cxml::ConstNodePtr k, j->node_children("AssetList")) {
+ BOOST_FOREACH (cxml::ConstNodePtr l, k->node_children()) {
+ if (!l->node_children("KeyId").empty()) {
+ encrypted = true;
+ }
+ }
+ }
+ }
+ }
+
+ if (!encrypted) {
+ /* XXX: this needs to be marked translatable after 2.14.0 */
+ error_dialog (this, wxT("This CPL contains no encrypted assets."));
+ return;
+ }
+