Blame SOURCES/files-view-Clear-selection-if-any-files-don-t-match-.patch

586b48
From 4d7a1a7413cc7e76e99e11def90a6503cc142efb Mon Sep 17 00:00:00 2001
586b48
From: Ondrej Holy <oholy@redhat.com>
586b48
Date: Wed, 26 Feb 2020 12:56:39 +0100
586b48
Subject: [PATCH] files-view: Clear selection if any files don't match the
586b48
 pattern
586b48
586b48
The Select items matching (Ctrl + S) feature allows to select files
586b48
which match the pattern. However, it is confusing that current selection
586b48
is not cleared when any files don't match the pattern.
586b48
---
586b48
 src/nautilus-files-view.c | 6 +++---
586b48
 1 file changed, 3 insertions(+), 3 deletions(-)
586b48
586b48
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c
586b48
index 5573701cc..f3d507fff 100644
586b48
--- a/src/nautilus-files-view.c
586b48
+++ b/src/nautilus-files-view.c
586b48
@@ -1716,12 +1716,12 @@ pattern_select_response_cb (GtkWidget *dialog,
586b48
             selection = nautilus_directory_match_pattern (directory,
586b48
                                                           gtk_entry_get_text (GTK_ENTRY (entry)));
586b48
 
586b48
+            nautilus_files_view_call_set_selection (view, selection);
586b48
+            nautilus_files_view_reveal_selection (view);
586b48
+
586b48
             if (selection)
586b48
             {
586b48
-                nautilus_files_view_call_set_selection (view, selection);
586b48
                 nautilus_file_list_free (selection);
586b48
-
586b48
-                nautilus_files_view_reveal_selection (view);
586b48
             }
586b48
             /* fall through */
586b48
         }
586b48
-- 
586b48
2.26.0
586b48