filechooserwidget: Avoid criticals when in recent mode

Don't try to use the browse_files_model just because we have a location
entry. The model might still be NULL at this point.
This commit is contained in:
Timm Bäder 2020-02-20 11:59:56 +01:00
parent 970d9dc06e
commit d7fb33caf7

View File

@ -7169,7 +7169,8 @@ list_selection_changed (GtkTreeSelection *selection,
if (gtk_tree_view_get_model (GTK_TREE_VIEW (priv->browse_files_tree_view)) == NULL)
return;
if (priv->location_entry)
if (priv->location_entry &&
priv->browse_files_model)
update_chooser_entry (impl);
location_bar_update (impl);