diff options
author | Carl Hetherington <carl@carlh.net> | 2011-04-11 18:49:51 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-04-11 18:49:51 +0000 |
commit | 036174daf16b565b9d963a86cc5cca853ead1fa5 (patch) | |
tree | 1f944390cfe08d747c2d278df793c14c1ce0e838 /libs/ardour | |
parent | 7c7853e4ffe7cf3298941bb130a52d79490c8e1b (diff) |
Move check for a new session directory being writable to after it has been created.
git-svn-id: svn://localhost/ardour2/branches/3.0@9342 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour')
-rw-r--r-- | libs/ardour/session_state.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index 616f19c50a..be29639a3b 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; |