[nautilus/wip/csoriano/destktop-split2: 6/14] files-view: don't select first file if pending selection
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/csoriano/destktop-split2: 6/14] files-view: don't select first file if pending selection
- Date: Wed, 16 Mar 2016 16:51:39 +0000 (UTC)
commit cfdae9e295aa438c789b9c49508bb90c9bb72b3e
Author: Carlos Soriano <csoriano gnome org>
Date: Wed Mar 16 14:05:16 2016 +0100
files-view: don't select first file if pending selection
We want to select the first file only if not pending selection
was found. For example when returning from a folder we just entered.
src/nautilus-files-view.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c
index fef1ce6..f0110d4 100644
--- a/src/nautilus-files-view.c
+++ b/src/nautilus-files-view.c
@@ -3180,7 +3180,7 @@ done_loading (NautilusFilesView *view,
selection = nautilus_view_get_selection (NAUTILUS_VIEW (view));
if (nautilus_view_is_searching (NAUTILUS_VIEW (view)) &&
- all_files_seen && !selection) {
+ all_files_seen && !selection && !pending_selection) {
nautilus_files_view_select_first (view);
do_reveal = TRUE;
} else if (pending_selection != NULL && all_files_seen) {
@@ -3656,9 +3656,12 @@ display_pending_files (NautilusFilesView *view)
process_new_files (view);
process_old_files (view);
- if (!nautilus_files_view_get_selection (NAUTILUS_VIEW (view)))
+ if (!nautilus_files_view_get_selection (NAUTILUS_VIEW (view)) &&
+ !view->details->pending_selection) {
nautilus_files_view_select_first (view);
+ }
+
if (view->details->model != NULL
&& nautilus_directory_are_all_files_seen (view->details->model)
&& g_hash_table_size (view->details->non_ready_files) == 0) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]