projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Repeat frames rather than using black for missing frames when we're inside some content.
[dcpomatic.git]
/
src
/
lib
/
config.cc
diff --git
a/src/lib/config.cc
b/src/lib/config.cc
index 54b9168f2542a1bbd8ee49d0b933f4c95007ada2..ccbcdf7ddb04e5cf08f4a80ca3c1d609545ce556 100644
(file)
--- a/
src/lib/config.cc
+++ b/
src/lib/config.cc
@@
-353,7
+353,13
@@
Config::write () const
boost::filesystem::path
Config::default_directory_or (boost::filesystem::path a) const
{
boost::filesystem::path
Config::default_directory_or (boost::filesystem::path a) const
{
- if (_default_directory.empty() || !boost::filesystem::exists (_default_directory)) {
+ if (_default_directory.empty()) {
+ return a;
+ }
+
+ boost::system::error_code ec;
+ bool const e = boost::filesystem::exists (_default_directory, ec);
+ if (ec || !e) {
return a;
}
return a;
}