From d2fcb0b0bedc58ae584ce7c023c95cb5d99f54e3 Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Wed, 10 Oct 2012 12:44:21 +0200 Subject: [PATCH] Use CURRENT sort parameters to check with previous --- src/client.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/client.c b/src/client.c index 618dfcf..189bb61 100644 --- a/src/client.c +++ b/src/client.c @@ -1371,12 +1371,10 @@ int client_parse_sort(struct client *cl, struct reclist_sortparms *sp) { struct session *se = client_get_session(cl); if (sp) - { /* first entry is current sorting ! */ + { const char *sort_strategy_and_spec = - get_strategy_plus_sort(cl, se->sorted_results->name); - - int increasing = se->sorted_results->increasing; - // int type = se->sorted_results->type; + get_strategy_plus_sort(cl, sp->name); + int increasing = sp->increasing; if (sort_strategy_and_spec && strlen(sort_strategy_and_spec) < 40) { char strategy[50], *p; -- 1.7.10.4