projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
faab327
)
Prevent an unnecessary config file write.
author
Carl Hetherington
<cth@carlh.net>
Fri, 6 Jul 2018 21:31:37 +0000
(22:31 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Fri, 6 Jul 2018 21:31:37 +0000
(22:31 +0100)
src/lib/config.cc
patch
|
blob
|
history
diff --git
a/src/lib/config.cc
b/src/lib/config.cc
index 8f1dd86ff763e17ec78f03950aa468cb1c0b4977..56ab16db7e0e72636cdbb8a343e6414bb317dd4b 100644
(file)
--- 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)) {