diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-08-19 23:57:24 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-08-19 23:57:24 +0100 |
| commit | 8f3743d18026b59b1ecd8e8f4d12cc59273eb1ed (patch) | |
| tree | 9a3a07b554898e2089e1ba897f64fdefcb14db64 /src/tools | |
| parent | 26cd966b7ae60673dd597eafa75860a5b5eb74c6 (diff) | |
Cope nicely if the user has a configured default container ratio which is now disallowed.
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/dcpomatic.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc index 0da3faa5b..f90f27c30 100644 --- a/src/tools/dcpomatic.cc +++ b/src/tools/dcpomatic.cc @@ -1166,6 +1166,7 @@ private: wxInitAllImageHandlers (); Config::FailedToLoad.connect (boost::bind (&App::config_failed_to_load, this)); + Config::Warning.connect (boost::bind (&App::config_warning, this, _1)); wxSplashScreen* splash = 0; try { @@ -1351,6 +1352,11 @@ private: message_dialog (_frame, _("The existing configuration failed to load. Default values will be used instead. These may take a short time to create.")); } + void config_warning (string m) + { + message_dialog (_frame, std_to_wx (m)); + } + DOMFrame* _frame; shared_ptr<wxTimer> _timer; string _film_to_load; |
