[nautilus] list-view: unselect all items before selecting a new one



commit c2bd3247fb2252440b5aa6ea6ff1eafd16eb4d6f
Author: Carlos Soriano <csoriano gnome org>
Date:   Thu Mar 3 11:06:45 2016 +0100

    list-view: unselect all items before selecting a new one
    
    It shouldn't happen, but better to be correct here.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=762595

 src/nautilus-list-view.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-list-view.c b/src/nautilus-list-view.c
index f867d9c..997c603 100644
--- a/src/nautilus-list-view.c
+++ b/src/nautilus-list-view.c
@@ -2466,6 +2466,7 @@ nautilus_list_view_select_first (NautilusFilesView *view)
                return;
        }
        selection = gtk_tree_view_get_selection (NAUTILUS_LIST_VIEW (view)->details->tree_view);
+       gtk_tree_selection_unselect_all (selection);
        gtk_tree_selection_select_iter (selection, &iter);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]