Fix bug 2599857: file list sort order was wrong in many cases.
authorLaurent Monin <geeqie@norz.org>
Thu, 19 Feb 2009 17:36:38 +0000 (17:36 +0000)
committerLaurent Monin <geeqie@norz.org>
Thu, 19 Feb 2009 17:36:38 +0000 (17:36 +0000)
src/layout.c

index bee0611..68efcf0 100644 (file)
@@ -1085,7 +1085,8 @@ gint layout_set_fd(LayoutWindow *lw, FileData *fd)
 
        if (lw->path_entry) tab_completion_append_to_history(lw->path_entry, lw->dir_fd->path);
        layout_sync_path(lw);
-
+       layout_list_sync_sort(lw);
+       
        if (have_file)
                {
                gint row;
@@ -1752,7 +1753,6 @@ void layout_style_set(LayoutWindow *lw, gint style, const gchar *order)
        layout_grid_setup(lw);
        layout_tools_hide(lw, lw->tools_hidden);
 
-       layout_list_sync_sort(lw);
        layout_util_sync(lw);
        layout_status_update_all(lw);