consolidate Ardour+Mixbus code, fix duplicate SeparatorElem in MB.
authorRobin Gareus <robin@gareus.org>
Mon, 20 Feb 2017 15:35:38 +0000 (16:35 +0100)
committerRobin Gareus <robin@gareus.org>
Mon, 20 Feb 2017 15:35:55 +0000 (16:35 +0100)
gtk2_ardour/mixer_strip.cc

index e233a1674873141bd953b1141e76841c07535c14..2b1d01d913cb6bf972ab72e2e517ab6f2be73964 100644 (file)
@@ -1687,13 +1687,25 @@ MixerStrip::build_route_ops_menu ()
 
        items.push_back (MenuElem (_("Outputs..."), sigc::mem_fun (*this, &RouteUI::edit_output_configuration)));
 
-       items.push_back (SeparatorElem());
+       if (!Profile->get_mixbus()) {
+               items.push_back (SeparatorElem());
+       }
 
-       if (!_route->is_master()) {
+       if (!_route->is_master()
+#ifdef MIXBUS
+                       && !_route->mixbus()
+#endif
+                       ) {
+               if (Profile->get_mixbus()) {
+                       items.push_back (SeparatorElem());
+               }
                items.push_back (MenuElem (_("Save As Template..."), sigc::mem_fun(*this, &RouteUI::save_as_template)));
        }
-       items.push_back (MenuElem (_("Rename..."), sigc::mem_fun(*this, &RouteUI::route_rename)));
-       rename_menu_item = &items.back();
+
+       if (!Profile->get_mixbus()) {
+               items.push_back (MenuElem (_("Rename..."), sigc::mem_fun(*this, &RouteUI::route_rename)));
+               rename_menu_item = &items.back();
+       }
 
        items.push_back (SeparatorElem());
        items.push_back (CheckMenuElem (_("Active")));