forked from len0rd/rockbox
fix FS#9104 - Database sorting does not work on un-filtered list
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17910 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
71c3802251
commit
f9f2d6d42e
1 changed files with 1 additions and 7 deletions
|
@ -114,7 +114,6 @@ struct display_format {
|
|||
int limit;
|
||||
int strip;
|
||||
bool sort_inverse;
|
||||
bool sort;
|
||||
};
|
||||
|
||||
static struct display_format *formats[TAGMENU_MAX_FMTS];
|
||||
|
@ -403,8 +402,6 @@ static int get_format_str(struct display_format *fmt)
|
|||
return -12;
|
||||
if (!strcasecmp("inverse", buf))
|
||||
fmt->sort_inverse = true;
|
||||
|
||||
fmt->sort = true;
|
||||
break;
|
||||
|
||||
case var_limit:
|
||||
|
@ -1129,10 +1126,7 @@ static int retrieve_entries(struct tree_context *c, struct tagcache_search *tcs,
|
|||
sort_inverse = fmt->sort_inverse;
|
||||
sort_limit = fmt->limit;
|
||||
strip = fmt->strip;
|
||||
|
||||
/* Check if sorting is forced. */
|
||||
if (fmt->sort)
|
||||
sort = true;
|
||||
sort = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue