diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-08-02 23:31:59 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-08-02 23:31:59 +0200 |
| commit | 591c73b472f0eb74225dbc1b08885f552b8814c4 (patch) | |
| tree | 9ddc72459f3ce4e3dd44efe0a6176df471e56ae5 | |
| parent | af680761cf7c3e97660e8e55c68f42e90b026bf9 (diff) | |
Don't terminate if a non-DCP directory is given to Open.
| -rw-r--r-- | src/tools/dcpomatic_player.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/dcpomatic_player.cc b/src/tools/dcpomatic_player.cc index 17f652625..11f4bfaa7 100644 --- a/src/tools/dcpomatic_player.cc +++ b/src/tools/dcpomatic_player.cc @@ -423,6 +423,8 @@ public: #endif } catch (dcp::ReadError& e) { error_dialog (this, wxString::Format(_("Could not load a DCP from %s"), std_to_wx(dir.string())), std_to_wx(e.what())); + } catch (DCPError& e) { + error_dialog (this, wxString::Format(_("Could not load a DCP from %s"), std_to_wx(dir.string())), std_to_wx(e.what())); } } |
