diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-07-06 22:31:37 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-07-06 22:31:37 +0100 |
| commit | 77c1e8d12586abf444a7b3b71bb88c0df8704999 (patch) | |
| tree | 450b2f5d7299966d7d9b050b57cef7ea05c1f1cb | |
| parent | faab327a3846fe1d06850ce03d8e29e30147e6b9 (diff) | |
Prevent an unnecessary config file write.
| -rw-r--r-- | src/lib/config.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/config.cc b/src/lib/config.cc index 8f1dd86ff..56ab16db7 100644 --- a/src/lib/config.cc +++ b/src/lib/config.cc @@ -976,6 +976,10 @@ Config::read_cinemas (cxml::Document const & f) void Config::set_cinemas_file (boost::filesystem::path file) { + if (file == _cinemas_file) { + return; + } + _cinemas_file = file; if (boost::filesystem::exists (_cinemas_file)) { |
