Tweak logic in master-bus packing to make it clearer; will also minimize conflicts...
authorBen Loftis <ben@harrisonconsoles.com>
Sun, 11 Mar 2018 19:42:00 +0000 (14:42 -0500)
committerBen Loftis <ben@harrisonconsoles.com>
Sun, 11 Mar 2018 19:42:10 +0000 (14:42 -0500)
gtk2_ardour/mixer_ui.cc

index 4fbb96e87e146feb8ca0da1e6e98a7054199f282..779dac2bceccd48bdc1db78c043d377bce0507ec 100644 (file)
@@ -583,7 +583,12 @@ Mixer_UI::add_stripables (StripableList& slist)
 
                                show_strip (strip);
 
-                               if (!route->is_master()) {
+                               if (route->is_master()) {
+
+                                       out_packer.pack_start (*strip, false, false);
+                                       strip->set_packed (true);
+
+                               } else {
 
                                        TreeModel::Row row = *(track_model->insert (insert_iter));
 
@@ -591,11 +596,6 @@ Mixer_UI::add_stripables (StripableList& slist)
                                        row[stripable_columns.visible] = strip->marked_for_display();
                                        row[stripable_columns.stripable] = route;
                                        row[stripable_columns.strip] = strip;
-
-                               } else {
-
-                                       out_packer.pack_start (*strip, false, false);
-                                       strip->set_packed (true);
                                }
 
                                strip->WidthChanged.connect (sigc::mem_fun(*this, &Mixer_UI::strip_width_changed));