Commit d5d96018 authored by Federico Mena Quintero's avatar Federico Mena Quintero Committed by Benjamin Otte

Fix and tighten an assertion

Signed-off-by: default avatarFederico Mena Quintero <>
parent 86c32c25
......@@ -1122,8 +1122,7 @@ gtk_file_system_model_set_directory (GtkFileSystemModel *model,
GFile * dir,
const gchar * attributes)
g_return_if_fail (GTK_IS_FILE_SYSTEM_MODEL (model));
g_return_if_fail (dir == NULL || G_IS_FILE (dir));
g_assert (G_IS_FILE (dir));
model->dir = g_object_ref (dir);
model->attributes = g_strdup (attributes);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment