diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-09-15 15:22:39 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-09-15 15:22:39 +0000 |
commit | 3b8d6d3b56087b0e2494003f5ad9033519efdb53 (patch) | |
tree | 331cf98da15d03b4c15f871d92a94294f47fb2a3 /libs/ardour/source.cc | |
parent | 76a24260c7d104c6027654d785a05aea74264580 (diff) |
lincoln's patch to stop a3 from nuking bounced files created by a2, fixes #3441
git-svn-id: svn://localhost/ardour2/branches/3.0@7781 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/source.cc')
-rw-r--r-- | libs/ardour/source.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/ardour/source.cc b/libs/ardour/source.cc index 6ab907ba16..165da0befd 100644 --- a/libs/ardour/source.cc +++ b/libs/ardour/source.cc @@ -146,6 +146,13 @@ Source::set_state (const XMLNode& node, int /*version*/) _flags = Flag (_flags | Destructive); } + /* a source with an XML node must necessarily already exist, + and therefore cannot be removable/writable etc. etc. + */ + if (!(_flags & Destructive)) { + _flags = Flag (_flags & ~(Writable|Removable|RemovableIfEmpty|RemoveAtDestroy|CanRename)); + } + return 0; } |