forked from Mirrors/sngrep
sort: fix autoscroll when sort is descending
This commit is contained in:
parent
420fa60da9
commit
69aa24e3e2
@ -308,7 +308,12 @@ call_list_draw_list(ui_t *ui)
|
|||||||
|
|
||||||
// If autoscroll is enabled, select the last dialog
|
// If autoscroll is enabled, select the last dialog
|
||||||
if (info->autoscroll) {
|
if (info->autoscroll) {
|
||||||
call_list_move(ui, vector_count(info->dcalls) - 1);
|
sip_sort_t sort = sip_sort_options();
|
||||||
|
if (sort.asc) {
|
||||||
|
call_list_move(ui, vector_count(info->dcalls) - 1);
|
||||||
|
} else {
|
||||||
|
call_list_move(ui, 0);
|
||||||
|
}
|
||||||
} else if (call) {
|
} else if (call) {
|
||||||
call_list_move(ui, vector_index(info->dcalls, call));
|
call_list_move(ui, vector_index(info->dcalls, call));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user