From 6f4ccfcd3b8ea971170b339fa93d501680cf44b3 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 15 Apr 2016 14:53:18 +0200 Subject: hide strict-i/o UI for Mixbus --- gtk2_ardour/add_route_dialog.cc | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'gtk2_ardour/add_route_dialog.cc') diff --git a/gtk2_ardour/add_route_dialog.cc b/gtk2_ardour/add_route_dialog.cc index 2d8e4e4ede..50db64d3fe 100644 --- a/gtk2_ardour/add_route_dialog.cc +++ b/gtk2_ardour/add_route_dialog.cc @@ -164,13 +164,18 @@ AddRouteDialog::AddRouteDialog () ++n; /* New Route's Routing is.. */ - l = manage (new Label (_("Output Ports:"), Gtk::ALIGN_LEFT, Gtk::ALIGN_CENTER, false)); - table2->attach (*l, 1, 2, n, n + 1, Gtk::FILL, Gtk::EXPAND, 0, 0); - table2->attach (strict_io_combo, 2, 3, n, n + 1, Gtk::FILL, Gtk::EXPAND | Gtk::FILL, 0, 0); - ARDOUR_UI_UTILS::set_tooltip (strict_io_combo, - _("With strict-i/o enabled, Effect Processors will not modify the number of channels on a track. The number of output channels will always match the number of input channels.")); - ++n; + if (Profile->get_mixbus ()) { + strict_io_combo.set_active (1); + } else { + l = manage (new Label (_("Output Ports:"), Gtk::ALIGN_LEFT, Gtk::ALIGN_CENTER, false)); + table2->attach (*l, 1, 2, n, n + 1, Gtk::FILL, Gtk::EXPAND, 0, 0); + table2->attach (strict_io_combo, 2, 3, n, n + 1, Gtk::FILL, Gtk::EXPAND | Gtk::FILL, 0, 0); + + ARDOUR_UI_UTILS::set_tooltip (strict_io_combo, + _("With strict-i/o enabled, Effect Processors will not modify the number of channels on a track. The number of output channels will always match the number of input channels.")); + ++n; + } options_box->pack_start (*table2, false, true); vbox->pack_start (*options_box, false, true); -- cgit v1.2.3