push2: connect pad port to selected MIDI at protocol startup
authorPaul Davis <paul@linuxaudiosystems.com>
Fri, 8 Jul 2016 21:46:35 +0000 (17:46 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 27 Sep 2016 19:59:30 +0000 (14:59 -0500)
libs/surfaces/push2/push2.cc

index e37a2a35d27e1e5063cc485d28c795843b9e0309..13b35397236b06d470b3ef2eb7166928f0f556ab 100644 (file)
@@ -691,6 +691,12 @@ Push2::set_active (bool yn)
                switch_bank (0);
                splash ();
 
+               /* catch current selection, if any */
+               {
+                       StripableNotificationListPtr sp (new StripableNotificationList (ControlProtocol::last_selected()));
+                       stripable_selection_change (sp);
+               }
+
        } else {
 
                stop ();