summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-05-03 20:04:39 +0100
committerCarl Hetherington <cth@carlh.net>2019-05-10 23:43:42 +0100
commitbe3402b1fa27c9c35b043fd88cef93a88b17c6de (patch)
treef64ae1ccffd5c616b259cbdcdca45fc13647cfd8 /src
parent6fe1f0362d04cd4d1f72eea74d84f4680f8e9cc9 (diff)
Close splash before displaying config errors/warnings.
Diffstat (limited to 'src')
-rw-r--r--src/tools/dcpomatic.cc15
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));
}