diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-05-03 20:04:39 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-05-08 23:25:22 +0100 |
| commit | d985f168752bcd9649fa89fd887f08f15e65bb08 (patch) | |
| tree | 2541ac9d2dc409e882da54b4dc687df0fce0ff71 | |
| parent | d27ef92ec050a0d995a7eaeb534ed8016b1ca39b (diff) | |
Close splash before displaying config errors/warnings.
| -rw-r--r-- | src/tools/dcpomatic.cc | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc index 7cac8e7f0..73e215c04 100644 --- a/src/tools/dcpomatic.cc +++ b/src/tools/dcpomatic.cc @@ -1511,10 +1511,7 @@ private: _frame = new DOMFrame (_("DCP-o-matic")); SetTopWindow (_frame); _frame->Maximize (); - if (_splash) { - _splash->Destroy (); - _splash = 0; - } + close_splash (); if (!Config::instance()->nagged(Config::NAG_INITIAL_SETUP)) { InitialSetupDialog* d = new InitialSetupDialog (); @@ -1650,13 +1647,23 @@ private: } } + void close_splash () + { + if (_splash) { + _splash->Destroy (); + _splash = 0; + } + } + void config_failed_to_load () { + close_splash (); 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) { + close_splash (); message_dialog (_frame, std_to_wx (m)); } |
