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:
parent
f294d62187
commit
f07af0c990
@ -297,13 +297,13 @@ EditorRoutes::on_tv_rec_enable_changed (std::string const & path_string)
|
|||||||
// Get the model row that has been toggled.
|
// Get the model row that has been toggled.
|
||||||
Gtk::TreeModel::Row row = *_model->get_iter (Gtk::TreeModel::Path (path_string));
|
Gtk::TreeModel::Row row = *_model->get_iter (Gtk::TreeModel::Path (path_string));
|
||||||
|
|
||||||
TimeAxisView *tv = row[_columns.tv];
|
TimeAxisView* tv = row[_columns.tv];
|
||||||
AudioTimeAxisView *atv = dynamic_cast<AudioTimeAxisView*> (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);
|
boost::shared_ptr<RouteList> rl (new RouteList);
|
||||||
rl->push_back (atv->route());
|
rl->push_back (rtv->route());
|
||||||
_session->set_record_enabled (rl, !atv->track()->record_enabled(), Session::rt_cleanup);
|
_session->set_record_enabled (rl, !rtv->track()->record_enabled(), Session::rt_cleanup);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user