mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 16:46:35 +01:00
Don't allow to deactivate master
This commit is contained in:
parent
6dfee0b1d2
commit
b21bab3a8c
1 changed files with 14 additions and 7 deletions
|
|
@ -1713,16 +1713,23 @@ MixerStrip::build_route_ops_menu ()
|
||||||
items.push_back (SeparatorElem());
|
items.push_back (SeparatorElem());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((!_route->is_master() || !active)
|
||||||
|
#ifdef MIXBUS
|
||||||
|
&& !_route->mixbus()
|
||||||
|
#endif
|
||||||
|
)
|
||||||
|
{
|
||||||
items.push_back (CheckMenuElem (_("Active")));
|
items.push_back (CheckMenuElem (_("Active")));
|
||||||
Gtk::CheckMenuItem* i = dynamic_cast<Gtk::CheckMenuItem *> (&items.back());
|
Gtk::CheckMenuItem* i = dynamic_cast<Gtk::CheckMenuItem *> (&items.back());
|
||||||
i->set_active (active);
|
i->set_active (active);
|
||||||
i->set_sensitive(! _session->transport_rolling());
|
i->set_sensitive (!_session->transport_rolling());
|
||||||
i->signal_activate().connect (sigc::bind (sigc::mem_fun (*this, &RouteUI::set_route_active), !_route->active(), false));
|
i->signal_activate().connect (sigc::bind (sigc::mem_fun (*this, &RouteUI::set_route_active), !_route->active(), false));
|
||||||
|
}
|
||||||
|
|
||||||
if (active && !Profile->get_mixbus ()) {
|
if (active && !Profile->get_mixbus ()) {
|
||||||
items.push_back (SeparatorElem());
|
items.push_back (SeparatorElem());
|
||||||
items.push_back (CheckMenuElem (_("Strict I/O")));
|
items.push_back (CheckMenuElem (_("Strict I/O")));
|
||||||
i = dynamic_cast<Gtk::CheckMenuItem *> (&items.back());
|
Gtk::CheckMenuItem* i = dynamic_cast<Gtk::CheckMenuItem *> (&items.back());
|
||||||
i->set_active (_route->strict_io());
|
i->set_active (_route->strict_io());
|
||||||
i->signal_activate().connect (sigc::hide_return (sigc::bind (sigc::mem_fun (*_route, &Route::set_strict_io), !_route->strict_io())));
|
i->signal_activate().connect (sigc::hide_return (sigc::bind (sigc::mem_fun (*_route, &Route::set_strict_io), !_route->strict_io())));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue