diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-09-04 21:26:03 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-09-05 23:52:03 +0200 |
| commit | f5bd787fb71466a6187050086b2890b9b0ac9294 (patch) | |
| tree | 816de528eccb8fd252910647ffa2138d65c34468 /src/tools/dcpomatic_combiner.cc | |
| parent | 8afad10c394462c66f68ac00698da38c5b0b8721 (diff) | |
Tidy up code to report failures to load config in the UI.
Diffstat (limited to 'src/tools/dcpomatic_combiner.cc')
| -rw-r--r-- | src/tools/dcpomatic_combiner.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/dcpomatic_combiner.cc b/src/tools/dcpomatic_combiner.cc index 2ef58bb85..e773e4a37 100644 --- a/src/tools/dcpomatic_combiner.cc +++ b/src/tools/dcpomatic_combiner.cc @@ -210,7 +210,7 @@ public: bool OnInit () override { try { - Config::FailedToLoad.connect (boost::bind (&App::config_failed_to_load, this)); + Config::FailedToLoad.connect(boost::bind(&App::config_failed_to_load, this, _1)); Config::Warning.connect (boost::bind (&App::config_warning, this, _1)); SetAppName (_("DCP-o-matic Combiner")); @@ -264,9 +264,9 @@ public: return true; } - void config_failed_to_load () + void config_failed_to_load(Config::LoadFailure what) { - message_dialog (_frame, _("The existing configuration failed to load. Default values will be used instead. These may take a short time to create.")); + report_config_load_failure(_frame, what); } void config_warning (string m) |
