* refactor Session::follow_slave to be easier to read and understand
[ardour.git] / libs / ardour / recent_sessions.cc
index cfb8d5bf2e73e6243e4f6d088ae4de260791dda1..d7f5ad132fab200b22a75abbac05ce5690e9e55a 100644 (file)
 
 */
 
+#include <cstring>
 #include <cerrno>
 #include <unistd.h>
 #include <fstream>
 #include <algorithm>
+
+#include <glibmm/miscutils.h>
+
 #include <pbd/error.h>
+
 #include <ardour/configuration.h>
 #include <ardour/filesystem_paths.h>
 #include <ardour/recent_sessions.h>
@@ -75,14 +80,9 @@ ARDOUR::read_recent_sessions (RecentSessions& rs)
                        break;
                }
 
-               if (!access(newpair.second.c_str(), R_OK)) {
-                       rs.push_back (newpair);
-               }
+               rs.push_back (newpair);
        }
 
-       // This deletes any missing sessions
-       ARDOUR::write_recent_sessions (rs);
-
        /* display sorting should be done in the GUI, otherwise the
         * natural order will be broken
         */