diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-07-14 21:20:50 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-07-14 21:20:50 +0100 |
| commit | 267e5cd9a9cd85c90fe80bdf14fead3923fd5489 (patch) | |
| tree | 0a69f0657a57eac6870a747e1e3fa22315e3050c /src/lib/config.h | |
| parent | e693014c1cf9a5204d54d753640be6bd4f00b195 (diff) | |
Better behaviour if config fails to load.
Create a default config if any exception is thrown by ::read, and
tell the UI so that it can pop up a message to say what has happened.
Diffstat (limited to 'src/lib/config.h')
| -rw-r--r-- | src/lib/config.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/config.h b/src/lib/config.h index feaac8390..61c6bfa69 100644 --- a/src/lib/config.h +++ b/src/lib/config.h @@ -483,6 +483,10 @@ public: void changed (Property p = OTHER); boost::signals2::signal<void (Property)> Changed; + /** Emitted if ::read() failed on an existing Config file. There is nothing + a listener can do about it: this is just for information. + */ + static boost::signals2::signal<void ()> FailedToLoad; void write () const; |
