summaryrefslogtreecommitdiff
path: root/gtk2_ardour/port_matrix.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-11-30 23:16:28 +0000
committerCarl Hetherington <carl@carlh.net>2009-11-30 23:16:28 +0000
commitfddc11f556061d0ffa9a173a3652aa34c20bac3b (patch)
treea1e1fe82b7edf053effec3f8a3f561e99ce43a13 /gtk2_ardour/port_matrix.cc
parent4497db3f1a9258561f7ec8a6a608bcda1594696d (diff)
Various optimisations to speed up rec-enable.
git-svn-id: svn://localhost/ardour2/branches/3.0@6227 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/port_matrix.cc')
-rw-r--r--gtk2_ardour/port_matrix.cc13
1 files changed, 12 insertions, 1 deletions
diff --git a/gtk2_ardour/port_matrix.cc b/gtk2_ardour/port_matrix.cc
index ccf240f1bb..f36287836a 100644
--- a/gtk2_ardour/port_matrix.cc
+++ b/gtk2_ardour/port_matrix.cc
@@ -142,11 +142,22 @@ PortMatrix::reconnect_to_routes ()
boost::shared_ptr<RouteList> routes = _session.get_routes ();
for (RouteList::iterator i = routes->begin(); i != routes->end(); ++i) {
_route_connections.push_back (
- (*i)->processors_changed.connect (mem_fun (*this, &PortMatrix::setup_global_ports))
+ (*i)->processors_changed.connect (mem_fun (*this, &PortMatrix::route_processors_changed))
);
}
}
+void
+PortMatrix::route_processors_changed (RouteProcessorChange c)
+{
+ if (c.type == RouteProcessorChange::MeterPointChange) {
+ /* this change has no impact on the port matrix */
+ return;
+ }
+
+ setup_global_ports ();
+}
+
/** A route has been added to or removed from the session */
void
PortMatrix::routes_changed ()