summaryrefslogtreecommitdiff
path: root/gtk2_ardour/mixer_ui.cc
diff options
context:
space:
mode:
authorLen Ovens <len@ovenwerks.net>2019-09-13 08:18:35 -0700
committerLen Ovens <len@ovenwerks.net>2019-09-13 08:18:35 -0700
commit4884fc734b74e9e1fe90dd8614b6b02e21c75028 (patch)
tree70798f15ccb2daadcf5928660ae3f9e3c16fdae7 /gtk2_ardour/mixer_ui.cc
parent1d557ba69f79105580443634d53552da44e545fc (diff)
desensitize foldback show unless there is a foldback bus
The view menu should not show the foldback item if there is no foldback bus available.
Diffstat (limited to 'gtk2_ardour/mixer_ui.cc')
-rw-r--r--gtk2_ardour/mixer_ui.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk2_ardour/mixer_ui.cc b/gtk2_ardour/mixer_ui.cc
index e349381ce7..968cdc1396 100644
--- a/gtk2_ardour/mixer_ui.cc
+++ b/gtk2_ardour/mixer_ui.cc
@@ -127,6 +127,9 @@ Mixer_UI::Mixer_UI ()
{
load_bindings ();
register_actions ();
+ Glib::RefPtr<ToggleAction> fb_act = ActionManager::get_toggle_action ("Mixer", "ToggleFoldbackStrip");
+ fb_act->set_sensitive (false);
+
_content.set_data ("ardour-bindings", bindings);
PresentationInfo::Change.connect (*this, invalidator (*this), boost::bind (&Mixer_UI::presentation_info_changed, this, _1), gui_context());
@@ -627,6 +630,7 @@ Mixer_UI::add_stripables (StripableList& slist)
* strip exists */
bool yn = _show_foldback_strip;
Glib::RefPtr<ToggleAction> act = ActionManager::get_toggle_action ("Mixer", "ToggleFoldbackStrip");
+ act->set_sensitive (true);
act->set_active(!yn);
act->set_active(yn);
continue;
@@ -754,6 +758,8 @@ Mixer_UI::remove_foldback (FoldbackStrip* strip)
/* its all being taken care of */
return;
}
+ Glib::RefPtr<ToggleAction> act = ActionManager::get_toggle_action ("Mixer", "ToggleFoldbackStrip");
+ act->set_sensitive (false);
if (foldback_strip) {
foldback_strip->destroy_();
}