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 <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2011-07-26 15:51:51 +04:00
parent 607c6a21dc
commit f0b1f55c19

View File

@ -1705,7 +1705,6 @@ find_file (void)
ssize_t start_dir_len; ssize_t start_dir_len;
char *filename = NULL, *dirname = NULL; char *filename = NULL, *dirname = NULL;
int v; int v;
gboolean dir_and_file_set;
while (find_parameters (&start_dir, &start_dir_len, &ignore_dirs, &pattern, &content)) while (find_parameters (&start_dir, &start_dir_len, &ignore_dirs, &pattern, &content))
{ {
@ -1737,7 +1736,6 @@ find_file (void)
} }
g_free (content); g_free (content);
dir_and_file_set = (dirname != NULL) && (filename != NULL);
g_free (dirname); g_free (dirname);
g_free (filename); g_free (filename);
@ -1746,12 +1744,8 @@ find_file (void)
if (v == B_PANELIZE) if (v == B_PANELIZE)
{ {
if (dir_and_file_set) panel_re_sort (current_panel);
{ try_to_select (current_panel, NULL);
try_to_select (current_panel, NULL);
panel_re_sort (current_panel);
try_to_select (current_panel, NULL);
}
break; break;
} }
} }