diff options
author | Carl Hetherington <carl@carlh.net> | 2009-11-30 19:48:50 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-11-30 19:48:50 +0000 |
commit | 4497db3f1a9258561f7ec8a6a608bcda1594696d (patch) | |
tree | fa3fabe5a20d45a7a5a9eade42cbb4fbadb30ab0 /gtk2_ardour/route_time_axis.cc | |
parent | cbf900d71f762f2656c9f87d1f355013e191065c (diff) |
Speed up some track state operations (e.g. mute etc.) that affect the editor route list; should help with #2941
git-svn-id: svn://localhost/ardour2/branches/3.0@6226 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/route_time_axis.cc')
-rw-r--r-- | gtk2_ardour/route_time_axis.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc index e1c480a9c0..ce693c2d29 100644 --- a/gtk2_ardour/route_time_axis.cc +++ b/gtk2_ardour/route_time_axis.cc @@ -2131,6 +2131,8 @@ RouteTimeAxisView::processors_changed () _route->foreach_processor (mem_fun (*this, &RouteTimeAxisView::add_processor_to_subplugin_menu)); _route->foreach_processor (mem_fun (*this, &RouteTimeAxisView::add_existing_processor_automation_curves)); + bool deleted_processor_automation = false; + for (list<ProcessorAutomationInfo*>::iterator i = processor_automation.begin(); i != processor_automation.end(); ) { list<ProcessorAutomationInfo*>::iterator tmp; @@ -2142,15 +2144,16 @@ RouteTimeAxisView::processors_changed () delete *i; processor_automation.erase (i); + deleted_processor_automation = true; } i = tmp; } - /* change in visibility was possible */ - - _route->gui_changed ("visible_tracks", this); + if (deleted_processor_automation) { + _route->gui_changed ("visible_tracks", this); + } } boost::shared_ptr<AutomationLine> |