summaryrefslogtreecommitdiff
path: root/src/lib/config.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-05-07 12:53:55 +0100
committerCarl Hetherington <cth@carlh.net>2015-05-07 12:53:55 +0100
commit21fb4ee6deb1321b37ad360cabdc8963774a4897 (patch)
treedc0584b364e452d32a945f07dfe2eddfbd582c4c /src/lib/config.h
parent6e3dfa7c6d719ec9044dc6b764ee3e4a50ee3190 (diff)
Only write config on change from the UI, not (say) from tests.
Diffstat (limited to 'src/lib/config.h')
-rw-r--r--src/lib/config.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/config.h b/src/lib/config.h
index 4f47ab314..f436061e8 100644
--- a/src/lib/config.h
+++ b/src/lib/config.h
@@ -407,6 +407,8 @@ public:
void changed ();
boost::signals2::signal<void ()> Changed;
+ void write () const;
+
static Config* instance ();
static void drop ();
static void restore_defaults ();
@@ -415,7 +417,6 @@ private:
Config ();
boost::filesystem::path file () const;
void read ();
- void write () const;
void make_decryption_keys ();
void set_defaults ();
void set_kdm_email_to_default ();