13
0

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
This commit is contained in:
Carl Hetherington 2011-04-11 18:49:51 +00:00
parent 7c7853e4ff
commit 036174daf1

View File

@ -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;