mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
Fix crash in playlist selector for removed tracks.
Removing a Track does not delete its playlists and one can keep Playlists after Cleanup. Don't crash if a the track that the playlist originally belonged to does no longer exist.
This commit is contained in:
parent
e39a8b90d9
commit
c724f3f82c
1 changed files with 1 additions and 1 deletions
|
|
@ -123,7 +123,7 @@ PlaylistSelector::show_for (RouteUI* ruix)
|
|||
|
||||
string nodename;
|
||||
|
||||
if (tr->name().empty()) {
|
||||
if (!tr || tr->name().empty()) {
|
||||
nodename = _("unassigned");
|
||||
} else {
|
||||
nodename = tr->name().c_str();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue