From ec9a8f022c8fad38a82b78823e6158676f621a34 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 18 Dec 2015 17:46:08 +0100 Subject: [PATCH] open Finder/Explorer/File-manager in case of session-dir ambiguity. --- libs/ardour/session_directory.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/ardour/session_directory.cc b/libs/ardour/session_directory.cc index ab6d4a56dc..693bee2a1c 100644 --- a/libs/ardour/session_directory.cc +++ b/libs/ardour/session_directory.cc @@ -24,6 +24,7 @@ #include "pbd/error.h" #include "pbd/compose.h" #include "pbd/file_utils.h" +#include "pbd/openuri.h" #include "ardour/directory_names.h" #include "ardour/session_directory.h" @@ -162,6 +163,7 @@ SessionDirectory::sources_root () const root_cache[m_root_path] = Glib::build_filename (sources_root_path, entries.front()); } else if (entries.size() > 1) { + PBD::open_uri (sources_root_path); PBD::fatal << string_compose (_("The session's interchange dir is tainted.\nThere is more than one folder in '%1'.\nPlease remove extra subdirs to reduce possible filename ambiguties."), sources_root_path) << endmsg; assert (0); // not reached }