summaryrefslogtreecommitdiff
path: root/gtk2_ardour/mixer_strip.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-04-10 00:24:27 +0000
committerCarl Hetherington <carl@carlh.net>2010-04-10 00:24:27 +0000
commit2a4f4e27632cbda32ec908bfecececefcd48b023 (patch)
tree780599b2251e184d3454bd2e9462a16f47075232 /gtk2_ardour/mixer_strip.cc
parent556af5afa10adc5ca2a515637b63864c6302c45f (diff)
Make record button appear in MIDI mixer strips. Fixes part of #2740.
git-svn-id: svn://localhost/ardour2/branches/3.0@6881 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/mixer_strip.cc')
-rw-r--r--gtk2_ardour/mixer_strip.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/gtk2_ardour/mixer_strip.cc b/gtk2_ardour/mixer_strip.cc
index dd8da400cd..9ff7696ecd 100644
--- a/gtk2_ardour/mixer_strip.cc
+++ b/gtk2_ardour/mixer_strip.cc
@@ -360,16 +360,18 @@ 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 (is_track ()) {
+
button_table.attach (*rec_enable_button, 0, 2, 2, 3);
rec_enable_button->set_sensitive (_session->writable());
rec_enable_button->show();
- } else if (!is_track()) {
+ } else {
+
/* non-master bus */
if (!_route->is_master()) {