summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-04-14 20:04:58 +0200
committerRobin Gareus <robin@gareus.org>2016-04-14 20:04:58 +0200
commitd739d2fd643b309bd1cebc1b59bfdc8543af2a22 (patch)
tree3068b717b576ff1009639c7dc816d7c6c5ce51a3
parenta3eaa4d3f0606349b91c7660da19eb3fee91bce3 (diff)
hide add/remove output buttons on mixer-strip.
-rw-r--r--gtk2_ardour/mixer_strip.cc20
1 files changed, 11 insertions, 9 deletions
diff --git a/gtk2_ardour/mixer_strip.cc b/gtk2_ardour/mixer_strip.cc
index 72ed566982..86b1b8eed8 100644
--- a/gtk2_ardour/mixer_strip.cc
+++ b/gtk2_ardour/mixer_strip.cc
@@ -874,15 +874,17 @@ MixerStrip::output_press (GdkEventButton *ev)
citems.pop_back ();
}
- citems.push_back (SeparatorElem());
-
- for (DataType::iterator i = DataType::begin(); i != DataType::end(); ++i) {
- citems.push_back (
- MenuElem (
- string_compose (_("Add %1 port"), (*i).to_i18n_string()),
- sigc::bind (sigc::mem_fun (*this, &MixerStrip::add_output_port), *i)
- )
- );
+ if (!ARDOUR::Profile->get_mixbus()) {
+ citems.push_back (SeparatorElem());
+
+ for (DataType::iterator i = DataType::begin(); i != DataType::end(); ++i) {
+ citems.push_back (
+ MenuElem (
+ string_compose (_("Add %1 port"), (*i).to_i18n_string()),
+ sigc::bind (sigc::mem_fun (*this, &MixerStrip::add_output_port), *i)
+ )
+ );
+ }
}
citems.push_back (SeparatorElem());