MCP fix issue 7219 get GUI to show main surface for right port
authorLen Ovens <len@ovenwerks.net>
Sat, 28 Jan 2017 05:44:40 +0000 (21:44 -0800)
committerLen Ovens <len@ovenwerks.net>
Sat, 28 Jan 2017 05:44:40 +0000 (21:44 -0800)
libs/surfaces/mackie/gui.cc

index 06786197e2b0be6a000a03f801326de4c4a37f24..b05a29fc95c45398168693387da6c76da65a9ebf 100644 (file)
@@ -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 {