From f0b1f55c196306c1b03ecfc272e18b75f03dd2d2 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Tue, 26 Jul 2011 15:51:51 +0400 Subject: [PATCH] Ticket #2175: panelize doesn't honour current sorting. After Find file -> Panelize files are shown with order of being found and sorting mode of current panel is not applied. Signed-off-by: Andrew Borodin --- src/filemanager/find.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/filemanager/find.c b/src/filemanager/find.c index 4d4875054..a6f675ca5 100644 --- a/src/filemanager/find.c +++ b/src/filemanager/find.c @@ -1705,7 +1705,6 @@ find_file (void) ssize_t start_dir_len; char *filename = NULL, *dirname = NULL; int v; - gboolean dir_and_file_set; while (find_parameters (&start_dir, &start_dir_len, &ignore_dirs, &pattern, &content)) { @@ -1737,7 +1736,6 @@ find_file (void) } g_free (content); - dir_and_file_set = (dirname != NULL) && (filename != NULL); g_free (dirname); g_free (filename); @@ -1746,12 +1744,8 @@ find_file (void) if (v == B_PANELIZE) { - if (dir_and_file_set) - { - try_to_select (current_panel, NULL); - panel_re_sort (current_panel); - try_to_select (current_panel, NULL); - } + panel_re_sort (current_panel); + try_to_select (current_panel, NULL); break; } } -- 2.11.4.GIT