diff --git a/gui/model.c b/gui/model.c index 23f1978a..cdd6bf17 100644 --- a/gui/model.c +++ b/gui/model.c @@ -285,7 +285,7 @@ void gui_queue_model_add(struct queue *queue, unsigned int row) GtkTreePath *path; GtkTreeIter iter; - if (queue != queue_model->gqm_queue) + if (!queue_model || queue != queue_model->gqm_queue) return; path = gtk_tree_path_new_from_indices(row, -1);