From d447e7f777eec611622493622d2d9697e79488fb 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. (cherry picked from commit f0b1f55c196306c1b03ecfc272e18b75f03dd2d2) 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 a3ac246a7..9b854e2d0 100644 --- a/src/filemanager/find.c +++ b/src/filemanager/find.c @@ -1604,7 +1604,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, &pattern, &content)) { @@ -1635,7 +1634,6 @@ find_file (void) } g_free (content); - dir_and_file_set = (dirname != NULL) && (filename != NULL); g_free (dirname); g_free (filename); @@ -1644,12 +1642,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