From: Colin Fletcher Date: Thu, 10 Sep 2015 10:50:20 +0000 (+0100) Subject: Check that a route has a track before trying to insert time on it. X-Git-Tag: 4.3~439 X-Git-Url: https://main.carlh.net/gitweb/?p=ardour.git;a=commitdiff_plain;h=3eb7ee6ac1a31338bc45eaf5af765f41f34ad910 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. --- diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index f0940fe719..2501b651fe 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -7285,7 +7285,7 @@ Editor::insert_time ( if (all_playlists) { RouteTimeAxisView* rtav = dynamic_cast (*x); - if (rtav) { + if (rtav && rtav->track ()) { vector > all = _session->playlists->playlists_for_track (rtav->track ()); for (vector >::iterator p = all.begin(); p != all.end(); ++p) { pl.insert (*p);