safety fix, in case non-Route stripable is selected

This commit is contained in:
Paul Davis 2019-03-20 20:50:29 -07:00
parent df90dbd7bb
commit 02684009eb
1 changed files with 3 additions and 1 deletions

View File

@ -170,7 +170,9 @@ DuplicateRouteDialog::on_response (int response)
for (TrackSelection::iterator t = tracks.begin(); t != tracks.end(); ++t) {
RouteUI* rui = dynamic_cast<RouteUI*> (*t);
sl.push_back (rui->route());
if (rui) {
sl.push_back (rui->route());
}
}
sl.sort (Stripable::Sorter());