diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-04-27 20:50:13 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-04-27 20:50:13 +0100 |
| commit | a4afc8e3dd6ce7c5f02d0eb69f03bf9f043afed0 (patch) | |
| tree | e9557ef5be1824e68b47c21b0d8980995053ba92 /src/tools | |
| parent | 2be230e3923fa75d41cd3218f9f54da199a1273c (diff) | |
Open an error dialogue on uncaught exceptions in the main loop. Check that the ImageContent constructor found some valid files when scanning a folder.
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/dcpomatic.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc index 2f64371ae..1abd25198 100644 --- a/src/tools/dcpomatic.cc +++ b/src/tools/dcpomatic.cc @@ -733,6 +733,17 @@ class App : public wxApp return true; } + bool OnExceptionInMainLoop () + { + error_dialog (0, _("An unknown exception occurred. Please report this problem to the DCP-o-matic author (carl@dcpomatic.com).")); + return false; + } + + void OnUnhandledException () + { + error_dialog (0, _("An unknown exception occurred. Please report this problem to the DCP-o-matic author (carl@dcpomatic.com).")); + } + void idle () { ui_signaller->ui_idle (); |
