mackie: use bus shortname in send subview.
authorPaul Davis <paul@linuxaudiosystems.com>
Wed, 3 Feb 2016 22:27:01 +0000 (17:27 -0500)
committerPaul Davis <paul@linuxaudiosystems.com>
Wed, 3 Feb 2016 22:27:01 +0000 (17:27 -0500)
Also slightly tighten route name display

libs/surfaces/mackie/strip.cc

index 82ec45226e81e922109ddf35fb6122375faeea77..84d949cfd1c92a95c1010f806e126c0c7c67fc77 100644 (file)
@@ -395,15 +395,12 @@ Strip::show_route_name ()
        } else {
                fullname = _route->name();
        }
-       string line1;
 
        if (fullname.length() <= 6) {
-               line1 = fullname;
+               pending_display[0] = fullname;
        } else {
-               line1 = PBD::short_version (fullname, 6);
+               pending_display[0] = PBD::short_version (fullname, 6);
        }
-
-       pending_display[0] = line1;
 }
 
 void
@@ -1751,7 +1748,7 @@ Strip::setup_sends_vpot (boost::shared_ptr<Route> r)
        pc->Changed.connect (subview_connections, MISSING_INVALIDATOR, boost::bind (&Strip::notify_send_level_change, this, BusSendLevel, global_pos, false), ui_context());
        _vpot->set_control (pc);
 
-       pending_display[0] = r->send_name (global_pos);
+       pending_display[0] = PBD::short_version (r->send_name (global_pos), 6);
 
        notify_send_level_change (BusSendLevel, global_pos, true);
 }