diff options
Diffstat (limited to 'gtk2_ardour/new_session_dialog.cc')
-rw-r--r-- | gtk2_ardour/new_session_dialog.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk2_ardour/new_session_dialog.cc b/gtk2_ardour/new_session_dialog.cc index 9d1805a7c4..41dc429cf8 100644 --- a/gtk2_ardour/new_session_dialog.cc +++ b/gtk2_ardour/new_session_dialog.cc @@ -993,6 +993,12 @@ NewSessionDialog::reset_recent() fullpath = fullpath.substr (0, fullpath.length()-1); } + /* check whether session still exists */ + if (!Glib::file_test(fullpath, Glib::FILE_TEST_EXISTS)) { + /* session doesn't exist */ + continue; + } + /* now get available states for this session */ if ((states = ARDOUR::Session::possible_states (fullpath)) == 0) { |