diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-11-27 17:41:43 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-11-27 17:41:43 +0000 |
commit | f3a833e38e669d3194652ddba40fa10377ff750a (patch) | |
tree | aad359972ea39a46b2123884e1d2af70ebee6920 /libs/ardour/audio_track.cc | |
parent | 2bd721d1ccb35a095d7e2b35f069abc14b79ed30 (diff) |
changes associated with save/restore of AutomationControl id's
git-svn-id: svn://localhost/ardour2/branches/3.0@8109 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/audio_track.cc')
-rw-r--r-- | libs/ardour/audio_track.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libs/ardour/audio_track.cc b/libs/ardour/audio_track.cc index 90813715b0..554c89df44 100644 --- a/libs/ardour/audio_track.cc +++ b/libs/ardour/audio_track.cc @@ -230,10 +230,11 @@ AudioTrack::_set_state (const XMLNode& node, int version, bool call_base) for (niter = nlist.begin(); niter != nlist.end(); ++niter){ child = *niter; - if (child->name() == X_("recenable")) { - _rec_enable_control->set_state (*child, version); - _session.add_controllable (_rec_enable_control); - } + if (child->name() == Controllable::xml_node_name && (prop = child->property ("name")) != 0) { + if (prop->value() == X_("recenable")) { + _rec_enable_control->set_state (*child, version); + } + } } if (version >= 3000) { |