diff options
author | Len Ovens <len@ovenwerks.net> | 2017-01-27 21:44:40 -0800 |
---|---|---|
committer | Len Ovens <len@ovenwerks.net> | 2017-01-27 21:44:40 -0800 |
commit | c3d0af413a6729c9acfbece7d8215444ec429471 (patch) | |
tree | 9b82d7c4d6b1240438be09e61c4074adf1040d03 /libs/surfaces | |
parent | 2a95d79014c6c7dcef73c8cae083c2e34c7bb811 (diff) |
MCP fix issue 7219 get GUI to show main surface for right port
Diffstat (limited to 'libs/surfaces')
-rw-r--r-- | libs/surfaces/mackie/gui.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/surfaces/mackie/gui.cc b/libs/surfaces/mackie/gui.cc index 06786197e2..b05a29fc95 100644 --- a/libs/surfaces/mackie/gui.cc +++ b/libs/surfaces/mackie/gui.cc @@ -333,6 +333,7 @@ MackieControlProtocolGUI::device_dependent_widget () int row = 0; uint32_t n_surfaces = 1 + _cp.device_info().extenders(); + uint32_t main_pos = _cp.device_info().master_position(); if (!_cp.device_info().uses_ipmidi()) { dd_table = Gtk::manage (new Gtk::Table (n_surfaces, 2)); @@ -387,7 +388,7 @@ MackieControlProtocolGUI::device_dependent_widget () string receive_string; if (n_surfaces > 1) { - if (n == 0) { + if (n == main_pos) { send_string = _("Main surface sends via:"); receive_string = _("Main surface receives via:"); } else { |