diff options
author | Carl Hetherington <carl@carlh.net> | 2010-07-21 02:17:57 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-07-21 02:17:57 +0000 |
commit | 1fd56c5476a4628dcf25d64c2950811c395bcfac (patch) | |
tree | 70eae40aaa89ed2f916fad7d2dcc3f3f86460cf9 /gtk2_ardour/port_matrix.cc | |
parent | f58a810af82cba3510b718a99bcc2d5473c8abf5 (diff) |
Sort tracks in the port matrix according to editor order. Fixes #2966.
git-svn-id: svn://localhost/ardour2/branches/3.0@7458 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/port_matrix.cc')
-rw-r--r-- | gtk2_ardour/port_matrix.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk2_ardour/port_matrix.cc b/gtk2_ardour/port_matrix.cc index 4486cfb30d..6113412df9 100644 --- a/gtk2_ardour/port_matrix.cc +++ b/gtk2_ardour/port_matrix.cc @@ -151,6 +151,8 @@ PortMatrix::init () /* and also ports */ _session->engine().PortRegisteredOrUnregistered.connect (_session_connections, invalidator (*this), boost::bind (&PortMatrix::setup_global_ports, this), gui_context()); + /* watch for route order keys changing, which changes the order of things in our global ports list(s) */ + _session->RouteOrderKeyChanged.connect (_session_connections, invalidator (*this), boost::bind (&PortMatrix::setup_global_ports, this), gui_context()); /* Part 3: other stuff */ @@ -201,7 +203,7 @@ PortMatrix::setup () { /* this needs to be done first, as the visible_ports() method uses the notebook state to decide which ports are being shown */ - + setup_notebooks (); _body->setup (); |