summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-07-26 19:16:37 +0100
committerCarl Hetherington <cth@carlh.net>2015-07-26 19:16:37 +0100
commitc577d380b51e8ef7601589ca0f273916abe47f68 (patch)
tree1561edace7a38c2ef5619394cf87962099f8798b /src
parent260e924ce6c84d08bfc62ba458e49b53716cff6e (diff)
Don't bother re-examining content if loading a KDM fails.
Diffstat (limited to 'src')
-rw-r--r--src/wx/content_menu.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wx/content_menu.cc b/src/wx/content_menu.cc
index 2218c5c08..415039cb1 100644
--- a/src/wx/content_menu.cc
+++ b/src/wx/content_menu.cc
@@ -317,6 +317,8 @@ ContentMenu::kdm ()
dcp->add_kdm (dcp::EncryptedKDM (dcp::file_to_string (wx_to_std (d->GetPath ()))));
} catch (exception& e) {
error_dialog (_parent, wxString::Format (_("Could not load KDM (%s)"), e.what ()));
+ d->Destroy ();
+ return;
}
shared_ptr<Film> film = _film.lock ();