recorder: Don't try to print info about a NULL list model

This commit is contained in:
Timm Bäder 2019-01-31 17:00:50 +01:00
parent 5852a5ece8
commit 4dca2f9604

View File

@ -396,13 +396,14 @@ recordings_list_row_selected (GtkListBox *box,
NULL, NULL);
g_object_unref (root_model);
g_object_unref (paintable);
g_print ("%u render nodes\n", g_list_model_get_n_items (G_LIST_MODEL (priv->render_node_model)));
}
else
{
gtk_picture_set_paintable (GTK_PICTURE (priv->render_node_view), NULL);
}
g_print ("%u render nodes\n", g_list_model_get_n_items (G_LIST_MODEL (priv->render_node_model)));
gtk_list_box_bind_model (GTK_LIST_BOX (priv->render_node_list),
G_LIST_MODEL (priv->render_node_model),