projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7b0c3d
)
Fix previous to generate chains if we are starting with no config.xml.
author
Carl Hetherington
<cth@carlh.net>
Mon, 14 Aug 2017 18:59:51 +0000
(19:59 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Mon, 14 Aug 2017 18:59:51 +0000
(19:59 +0100)
src/lib/config.cc
patch
|
blob
|
history
diff --git
a/src/lib/config.cc
b/src/lib/config.cc
index f341799c4597cf815e7349c48362baf211f9ea65..18fda63e3750467d3d958a2533777724dd10b68d 100644
(file)
--- a/
src/lib/config.cc
+++ b/
src/lib/config.cc
@@
-166,13
+166,8
@@
void
Config::read ()
try
{
- boost::filesystem::path const config_path = config_file ();
- if (!boost::filesystem::exists (config_path)) {
- return;
- }
-
cxml::Document f ("Config");
- f.read_file (config_
path
);
+ f.read_file (config_
file ()
);
optional<int> version = f.optional_number_child<int> ("Version");