Don't terminate if a non-DCP directory is given to Open.
authorCarl Hetherington <cth@carlh.net>
Sun, 2 Aug 2020 21:31:59 +0000 (23:31 +0200)
committerCarl Hetherington <cth@carlh.net>
Sun, 2 Aug 2020 21:31:59 +0000 (23:31 +0200)
src/tools/dcpomatic_player.cc

index 17f6526257c2a01e6e4d03b5c824d969e2ddb367..11f4bfaa7a4fd9107aff49a383047962273972ba 100644 (file)
@@ -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()));
                }
        }