[nautilus] list-view: Fix typo causing crash on searches outside home



commit 58295f38272f650afcd18ee1bdc58ca180495af5
Author: Yanko Kaneti <yaneti declera com>
Date:   Fri Aug 21 17:17:08 2015 +0300

    list-view: Fix typo causing crash on searches outside home

 src/nautilus-list-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-list-view.c b/src/nautilus-list-view.c
index f835d1b..9eac2d5 100644
--- a/src/nautilus-list-view.c
+++ b/src/nautilus-list-view.c
@@ -1710,7 +1710,7 @@ location_cell_data_func (GtkTreeViewColumn *column,
        } else if (g_file_has_prefix (dir_location, base_location)) {
                 gchar *relative_path;
 
-                relative_path = g_file_get_relative_path (home_location, dir_location);
+                relative_path = g_file_get_relative_path (base_location, dir_location);
                 where = g_filename_display_name (relative_path);
 
                 g_free (relative_path);


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