projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
35e6b94
)
Fix totally missing saving of DKDM recipients.
author
Carl Hetherington
<cth@carlh.net>
Sun, 11 Feb 2024 13:36:33 +0000
(14:36 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Sun, 11 Feb 2024 13:36:33 +0000
(14:36 +0100)
src/tools/dcpomatic.cc
patch
|
blob
|
history
diff --git
a/src/tools/dcpomatic.cc
b/src/tools/dcpomatic.cc
index 6e374d4ae9045598b0e610b2c7e75350808d30fc..c0a182eb6d373041352107e87cad4669c728bc21 100644
(file)
--- 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 */
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) {
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) {
try {
Config::instance()->write_config();
} catch (exception& e) {