diff options
author | Carlos Soriano <csoriano@gnome.org> | 2016-04-25 18:23:06 +0200 |
---|---|---|
committer | Carlos Soriano <csoriano@gnome.org> | 2016-04-25 18:26:20 +0200 |
commit | 020e405414eea963524c4347767430d46481f9b7 (patch) | |
tree | 0bad361cf4eab71603a1d3cba6d6dc7a9dde1c4b | |
parent | c48d702439350450fd3fd9abb8638da8433d8023 (diff) | |
download | nautilus-020e405414eea963524c4347767430d46481f9b7.tar.gz |
files-view: select first item only when searching
Since 2fa597e we select the first item even if the view didn't load
all the files.
But we were selecting the first item unconditionally.
However, it only makes sense to select the first item on the view if the
view is searching, not otherwise.
This patch makes files view to select the first item only if the view is
searching, as we had previously.
https://bugzilla.gnome.org/show_bug.cgi?id=765264
-rw-r--r-- | src/nautilus-files-view.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c index 7a090951c..7435c0c85 100644 --- a/src/nautilus-files-view.c +++ b/src/nautilus-files-view.c @@ -3618,7 +3618,8 @@ display_pending_files (NautilusFilesView *view) process_old_files (view); if (!nautilus_files_view_get_selection (NAUTILUS_VIEW (view)) && - !view->details->pending_selection) { + !view->details->pending_selection && + nautilus_view_is_searching (NAUTILUS_VIEW (view))) { nautilus_files_view_select_first (view); } |