From fbf3f5a2ca4df27c07949874b40f0c2df66cc404 Mon Sep 17 00:00:00 2001 From: carlh Date: Mon, 11 Apr 2011 18:49:51 +0000 Subject: [PATCH] Move check for a new session directory being writable to after it has been created. git-svn-id: http://subversion.ardour.org/svn/ardour2/ardour2/branches/3.0@9342 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/session_state.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index 616f19c50..be29639a3 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -152,8 +152,6 @@ Session::first_stage_init (string fullpath, string snapshot_name) _path += G_DIR_SEPARATOR; } - _writable = exists_and_writable (sys::path (_path)); - /* these two are just provisional settings. set_state() will likely override them. */ @@ -515,6 +513,8 @@ Session::create (const string& mix_template, BusProfile* bus_profile) return -1; } + _writable = exists_and_writable (sys::path (_path)); + if (!mix_template.empty()) { std::string in_path = mix_template; -- 2.11.4.GIT