summaryrefslogtreecommitdiff
path: root/libs/ardour/session_state.cc
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2017-05-13 08:57:58 +1000
committerTim Mayberry <mojofunk@gmail.com>2017-05-13 09:02:02 +1000
commitdef9e110b763d8c0c5c58ce428461e02bbc87f36 (patch)
treebba751283610d8d3faaa09356c281adbf5d504a8 /libs/ardour/session_state.cc
parentb89a851bc85d182ed496ec18b1d96ac7911cb882 (diff)
Update Session::writable() during Session::save_as() when switching to copy
Loading a read only Session then making a copy with Save As and switch was not allowing new Session to be saved as writable state was not updated. Resolves: #7352
Diffstat (limited to 'libs/ardour/session_state.cc')
-rw-r--r--libs/ardour/session_state.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc
index b7fac84ffe..a908502bd0 100644
--- a/libs/ardour/session_state.cc
+++ b/libs/ardour/session_state.cc
@@ -5043,6 +5043,8 @@ Session::save_as (SaveAs& saveas)
session_dirs.push_back (sp);
refresh_disk_space ();
+ _writable = exists_and_writable (_path);
+
/* ensure that all existing tracks reset their current capture source paths
*/
reset_write_sources (true, true);