summaryrefslogtreecommitdiff
path: root/gtk2_ardour/mixer_strip.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-08-10 00:09:25 +0000
committerCarl Hetherington <carl@carlh.net>2010-08-10 00:09:25 +0000
commit3cce57d490ad51845b8447ba5630b8d2820d541b (patch)
treed0e5b930f0b6f31ec7e50e1da307f6dfee1e6ddc /gtk2_ardour/mixer_strip.cc
parenteaed7cfe25e3480defbae8ac926bda5d9dc789be (diff)
Give mixer strips panners and a mono button based on the type of its outputs, not of its track.
git-svn-id: svn://localhost/ardour2/branches/3.0@7581 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/mixer_strip.cc')
-rw-r--r--gtk2_ardour/mixer_strip.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk2_ardour/mixer_strip.cc b/gtk2_ardour/mixer_strip.cc
index 3d8c43e73c..963ca84f21 100644
--- a/gtk2_ardour/mixer_strip.cc
+++ b/gtk2_ardour/mixer_strip.cc
@@ -408,12 +408,12 @@ MixerStrip::set_route (boost::shared_ptr<Route> rt)
if (is_audio_track()) {
boost::shared_ptr<AudioTrack> at = audio_track();
at->FreezeChange.connect (route_connections, invalidator (*this), boost::bind (&MixerStrip::map_frozen, this), gui_context());
+ }
+ if (has_audio_outputs ()) {
_mono_button.show ();
panners.show_all ();
- }
-
- if (is_midi_track()) {
+ } else {
_mono_button.hide ();
panners.hide_all ();
}