From e9c4eeb7c883af02c8a5e1c0e708b78e40c4e53c Mon Sep 17 00:00:00 2001 From: Peter Eisenmann Date: Thu, 17 Aug 2023 00:08:19 +0200 Subject: [PATCH] list-view: Don't try to expand search results Don't try to expand search results in list view by returning early when the list view is showing a search. Fixes #3058 --- src/nautilus-list-view.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/nautilus-list-view.c b/src/nautilus-list-view.c index a6e04fa7c5..6163216474 100644 --- a/src/nautilus-list-view.c +++ b/src/nautilus-list-view.c @@ -875,6 +875,11 @@ tree_expander_shortcut_cb (GtkWidget *widget, char *action; guint keyval = GPOINTER_TO_INT (user_data); + if (!self->expand_as_a_tree) + { + return FALSE; + } + /* Hack to find the focus item. */ child = gtk_root_get_focus (gtk_widget_get_root (widget)); while (child != NULL && !NAUTILUS_IS_VIEW_CELL (child)) -- GitLab