forked from AuroraMiddleware/gtk
flattenlistmodel: Do proper check
If we want the model items to be listmodels, we don't need to do a == comparison. We need to do g_type_is_a(). Implementations of listmodels are obviously fine.
This commit is contained in:
parent
8cd1a4a095
commit
3e5f5d3959
@ -486,7 +486,7 @@ gtk_flatten_list_model_set_model (GtkFlattenListModel *self,
|
||||
g_return_if_fail (model == NULL || G_IS_LIST_MODEL (model));
|
||||
if (model)
|
||||
{
|
||||
g_return_if_fail (g_list_model_get_item_type (model) == G_TYPE_LIST_MODEL);
|
||||
g_return_if_fail (g_type_is_a (g_list_model_get_item_type (model), G_TYPE_LIST_MODEL));
|
||||
}
|
||||
|
||||
if (self->model == model)
|
||||
|
Loading…
Reference in New Issue
Block a user