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
@ -123,7 +123,7 @@ PlaylistSelector::show_for (RouteUI* ruix)
|
|||||||
|
|
||||||
string nodename;
|
string nodename;
|
||||||
|
|
||||||
if (tr->name().empty()) {
|
if (!tr || tr->name().empty()) {
|
||||||
nodename = _("unassigned");
|
nodename = _("unassigned");
|
||||||
} else {
|
} else {
|
||||||
nodename = tr->name().c_str();
|
nodename = tr->name().c_str();
|
||||||
|
Loading…
Reference in New Issue
Block a user