Feature Request #70 Navigation menu option and button for parent directory
[geeqie.git] / src / view_dir_list.c
index fa65a74..959eb31 100644 (file)
@@ -146,15 +146,7 @@ static gboolean vdlist_populate(ViewDir *vd, gboolean clear)
        ret = filelist_read(vd->dir_fd, NULL, &VDLIST(vd)->list);
        VDLIST(vd)->list = filelist_sort(VDLIST(vd)->list, sort_type, sort_ascend);
 
-       /* add . and .. */
-
-       if (strcmp(vd->dir_fd->path, G_DIR_SEPARATOR_S) != 0)
-               {
-               filepath = g_build_filename(vd->dir_fd->path, "..", NULL);
-               fd = file_data_new_dir(filepath);
-               VDLIST(vd)->list = g_list_prepend(VDLIST(vd)->list, fd);
-               g_free(filepath);
-               }
+       /* add . */
 
        if (options->file_filter.show_dot_directory)
                {