+2013-12-18 Carl Hetherington <cth@carlh.net>
+
+ * Hopefully fix exception on new film in some strange cases.
+
2013-12-09 Carl Hetherington <cth@carlh.net>
* Version 1.42 released.
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;
}