filechooser: Fix setting unlisted filters

This is documented to work, but it was broken
when we ported things to list models.
This commit is contained in:
Matthias Clasen 2020-09-13 01:12:51 -04:00
parent c8a9e7fa82
commit 4629182246

View File

@ -6856,7 +6856,7 @@ set_current_filter (GtkFileChooserWidget *impl,
if (filter)
{
if (!g_list_store_find (impl->filters, filter, &filter_index))
return;
filter_index = GTK_INVALID_LIST_POSITION;
}
else
{