safety fix, in case non-Route stripable is selected
This commit is contained in:
parent
df90dbd7bb
commit
02684009eb
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user