mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 08:36:32 +01:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue