gui/collection: Check for collection_q in on_track_removed()
So we don't segfault while removing banned tracks. Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
parent
9701da5392
commit
6a8e73375e
|
@ -56,7 +56,8 @@ static void collection_added(struct queue *queue, unsigned int pos)
|
|||
|
||||
static void collection_removed(struct queue *queue, unsigned int pos)
|
||||
{
|
||||
collection_tab->on_track_removed(pos);
|
||||
if (collection_tab)
|
||||
collection_tab->on_track_removed(pos);
|
||||
}
|
||||
|
||||
static void collection_updated(struct queue *queue, unsigned int pos)
|
||||
|
|
Loading…
Reference in New Issue