diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-12-14 20:35:58 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-12-14 20:35:58 +0000 |
| commit | 1b1137dac3167de7e4bb23d86a4f3505ad880675 (patch) | |
| tree | 24c8fcbdfa1e54d006e3e58e588a685697654d5f /src/wx/content_view.cc | |
| parent | ac5b373ab1f8d7cbc7b83aa05edec231bc1d956c (diff) | |
swaroop: fall back to home directory if the content directory is not present.
Diffstat (limited to 'src/wx/content_view.cc')
| -rw-r--r-- | src/wx/content_view.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wx/content_view.cc b/src/wx/content_view.cc index 035118245..4db00fb54 100644 --- a/src/wx/content_view.cc +++ b/src/wx/content_view.cc @@ -70,8 +70,8 @@ ContentView::update () DeleteAllItems (); _content.clear (); optional<path> dir = Config::instance()->player_content_directory(); - if (!dir) { - return; + if (!dir || !boost::filesystem::is_directory(*dir)) { + dir = home_directory (); } wxProgressDialog progress (_("DCP-o-matic"), _("Reading content directory")); |
