13
0

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
This commit is contained in:
Paul Davis 2010-09-15 15:22:39 +00:00
parent 76a24260c7
commit 3b8d6d3b56

View File

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