diff options
author | Robin Gareus <robin@gareus.org> | 2020-05-20 01:02:36 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-05-20 01:02:36 +0200 |
commit | 6ada6c553bec3b43a6c92aaa364cd4da20f1315b (patch) | |
tree | 447cb47bfc207043ef28a508b3fb414072967834 /gtk2_ardour/control_point.h | |
parent | 6c728628011d01a8e04a706742a894a96dd9edc8 (diff) |
Speed up automation lane removal with many ctrl points6.0-rc2
Deleting the group first, directly removes child items
without triggering Canvas::item_changed() for every item.
This significantly speeds up closing sessions (or deleting tracks)
with lots of automation events.
Diffstat (limited to 'gtk2_ardour/control_point.h')
-rw-r--r-- | gtk2_ardour/control_point.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk2_ardour/control_point.h b/gtk2_ardour/control_point.h index 88b074f6f9..ed9c10e6d7 100644 --- a/gtk2_ardour/control_point.h +++ b/gtk2_ardour/control_point.h @@ -79,6 +79,9 @@ public: ArdourCanvas::Item& item() const; + /* used from ~AutomationLine */ + void unset_item () { _item = 0 ; } + ARDOUR::AutomationList::iterator model() const { return _model; } AutomationLine& line() const { return _line; } |