diff options
author | Robin Gareus <robin@gareus.org> | 2014-03-21 16:06:59 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-03-21 16:10:29 +0100 |
commit | 903f1d7853cde897687a3f40a754add8defd6c52 (patch) | |
tree | 560eb202706ffd4f8c7e4e6422dbf61744b81531 /libs | |
parent | 38a180ddc6fe70d467a45938abd76d7bbffafcf0 (diff) |
check if session dir is writable (needed for .bak files, undo, etc)
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/session_state.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index 47971bf633..af18a4896b 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -798,7 +798,7 @@ Session::load_state (string snapshot_name) set_dirty(); - _writable = exists_and_writable (xmlpath); + _writable = exists_and_writable (xmlpath) && exists_and_writable(Glib::path_get_dirname(xmlpath)); if (!state_tree->read (xmlpath)) { error << string_compose(_("Could not understand session file %1"), xmlpath) << endmsg; |