Don't mark reloaded MIDI sources as non-writable. Fixes #3483.
git-svn-id: svn://localhost/ardour2/branches/3.0@7853 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
f761f13f6b
commit
045754c52b
@ -110,7 +110,7 @@ Source::get_state ()
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
Source::set_state (const XMLNode& node, int /*version*/)
|
Source::set_state (const XMLNode& node, int version)
|
||||||
{
|
{
|
||||||
const XMLProperty* prop;
|
const XMLProperty* prop;
|
||||||
|
|
||||||
@ -146,12 +146,15 @@ Source::set_state (const XMLNode& node, int /*version*/)
|
|||||||
_flags = Flag (_flags | Destructive);
|
_flags = Flag (_flags | Destructive);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* a source with an XML node must necessarily already exist,
|
if (version < 3000) {
|
||||||
and therefore cannot be removable/writable etc. etc.
|
/* a source with an XML node must necessarily already exist,
|
||||||
*/
|
and therefore cannot be removable/writable etc. etc.; 2.X
|
||||||
if (!(_flags & Destructive)) {
|
sometimes marks sources as removable which shouldn't be.
|
||||||
_flags = Flag (_flags & ~(Writable|Removable|RemovableIfEmpty|RemoveAtDestroy|CanRename));
|
*/
|
||||||
}
|
if (!(_flags & Destructive)) {
|
||||||
|
_flags = Flag (_flags & ~(Writable|Removable|RemovableIfEmpty|RemoveAtDestroy|CanRename));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user