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
This commit is contained in:
Tim Mayberry 2017-05-13 08:57:58 +10:00
parent b89a851bc8
commit def9e110b7

View file

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