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:
Anna Schumaker 2015-12-07 10:19:12 -05:00
parent 9701da5392
commit 6a8e73375e
1 changed files with 2 additions and 1 deletions

View File

@ -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)