diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-02-09 23:36:42 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-02-10 23:35:26 +0100 |
| commit | fa580d756b32cd46f735cbbdabc9218bb8df2560 (patch) | |
| tree | dfdf3c50e968cadb131202da0ad75ba98d5296b4 /src/lib | |
| parent | 06a33b6d5114e4b9c76c2b98c3a6936fb9a4208a (diff) | |
Apply the same fix for DKDM recipients as we previously had for cinemas.
Otherwise the same problem happens with dkdm_recipients.xml - it is
moved to sqlite3 but the configuration still has the XML path, causing a
crash the next time we try to access the DKDM recipients list.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/config.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/config.cc b/src/lib/config.cc index 79584326c..dc33b26bc 100644 --- a/src/lib/config.cc +++ b/src/lib/config.cc @@ -714,8 +714,9 @@ Config::instance() auto sqlite = dkdm_recipients_file; sqlite.replace_extension(".sqlite3"); + _instance->set_dkdm_recipients_file(sqlite); + if (dcp::filesystem::exists(dkdm_recipients_file) && !dcp::filesystem::exists(sqlite)) { - _instance->set_dkdm_recipients_file(sqlite); DKDMRecipientList recipients; recipients.read_legacy_file(dkdm_recipients_file); } |
