summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-02-11 14:36:33 +0100
committerCarl Hetherington <cth@carlh.net>2024-02-11 14:36:33 +0100
commit821b2abc0fe575390afa02faf45db164a22ad9bc (patch)
tree010c0ec53bf8ccc73cdce971c71fba7f2058a1b0
parent35e6b94420bd8885a9d3d00cf19bacb8164b4aed (diff)
Fix totally missing saving of DKDM recipients.
-rw-r--r--src/tools/dcpomatic.cc19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc
index 6e374d4ae..c0a182eb6 100644
--- a/src/tools/dcpomatic.cc
+++ b/src/tools/dcpomatic.cc
@@ -1414,7 +1414,8 @@ private:
void config_changed (Config::Property what)
{
/* Instantly save any config changes when using the DCP-o-matic GUI */
- if (what == Config::CINEMAS) {
+ switch (what) {
+ case Config::CINEMAS:
try {
Config::instance()->write_cinemas();
} catch (exception& e) {
@@ -1426,7 +1427,21 @@ private:
)
);
}
- } else {
+ break;
+ case Config::DKDM_RECIPIENTS:
+ try {
+ Config::instance()->write_dkdm_recipients();
+ } catch (exception& e) {
+ error_dialog (
+ this,
+ wxString::Format (
+ _("Could not write to DKDM recipients file at %s. Your changes have not been saved."),
+ std_to_wx(Config::instance()->dkdm_recipients_file().string()).data()
+ )
+ );
+ }
+ break;
+ default:
try {
Config::instance()->write_config();
} catch (exception& e) {