Check that a route has a track before trying to insert time on it.
Routes which are busses don't have a track, and thus no playlists either: avoid a crash when inserting time when a bus is selected and 'all playlists' is chosen.
This commit is contained in:
parent
1a6c08dcfc
commit
3eb7ee6ac1
@ -7285,7 +7285,7 @@ Editor::insert_time (
|
||||
|
||||
if (all_playlists) {
|
||||
RouteTimeAxisView* rtav = dynamic_cast<RouteTimeAxisView*> (*x);
|
||||
if (rtav) {
|
||||
if (rtav && rtav->track ()) {
|
||||
vector<boost::shared_ptr<Playlist> > all = _session->playlists->playlists_for_track (rtav->track ());
|
||||
for (vector<boost::shared_ptr<Playlist> >::iterator p = all.begin(); p != all.end(); ++p) {
|
||||
pl.insert (*p);
|
||||
|
Loading…
Reference in New Issue
Block a user