diff options
Diffstat (limited to 'libs/ardour/automation_list.cc')
-rw-r--r-- | libs/ardour/automation_list.cc | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/libs/ardour/automation_list.cc b/libs/ardour/automation_list.cc index 479674aee6..92a3d167da 100644 --- a/libs/ardour/automation_list.cc +++ b/libs/ardour/automation_list.cc @@ -170,7 +170,7 @@ AutomationList::maybe_signal_changed () { ControlList::maybe_signal_changed (); - if (!_frozen) { + if (!ControlList::frozen()) { StateChanged (); /* EMIT SIGNAL */ } } @@ -208,12 +208,6 @@ AutomationList::stop_touch () } void -AutomationList::freeze () -{ - _frozen++; -} - -void AutomationList::thaw () { ControlList::thaw(); @@ -313,7 +307,7 @@ AutomationList::deserialize_events (const XMLNode& node) return -1; } - freeze (); + ControlList::freeze (); clear (); stringstream str (content_node->content()); @@ -344,8 +338,8 @@ AutomationList::deserialize_events (const XMLNode& node) maybe_signal_changed (); } - thaw (); - + ControlList::thaw (); + return 0; } @@ -377,7 +371,7 @@ AutomationList::set_state (const XMLNode& node, int version) nframes_t x; double y; - freeze (); + ControlList::freeze (); clear (); for (i = elist.begin(); i != elist.end(); ++i) { @@ -397,7 +391,7 @@ AutomationList::set_state (const XMLNode& node, int version) fast_simple_add (x, y); } - thaw (); + ControlList::thaw (); return 0; } |