13
0

Make editor route list rec enable work for MIDI tracks.

git-svn-id: svn://localhost/ardour2/branches/3.0@8406 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2011-01-01 19:04:11 +00:00
parent f294d62187
commit f07af0c990

View File

@ -297,13 +297,13 @@ EditorRoutes::on_tv_rec_enable_changed (std::string const & path_string)
// Get the model row that has been toggled.
Gtk::TreeModel::Row row = *_model->get_iter (Gtk::TreeModel::Path (path_string));
TimeAxisView *tv = row[_columns.tv];
AudioTimeAxisView *atv = dynamic_cast<AudioTimeAxisView*> (tv);
TimeAxisView* tv = row[_columns.tv];
RouteTimeAxisView *rtv = dynamic_cast<RouteTimeAxisView*> (tv);
if (atv != 0 && atv->is_audio_track()){
if (rtv && rtv->track()) {
boost::shared_ptr<RouteList> rl (new RouteList);
rl->push_back (atv->route());
_session->set_record_enabled (rl, !atv->track()->record_enabled(), Session::rt_cleanup);
rl->push_back (rtv->route());
_session->set_record_enabled (rl, !rtv->track()->record_enabled(), Session::rt_cleanup);
}
}