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 limit;
|
||||||
int strip;
|
int strip;
|
||||||
bool sort_inverse;
|
bool sort_inverse;
|
||||||
bool sort;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct display_format *formats[TAGMENU_MAX_FMTS];
|
static struct display_format *formats[TAGMENU_MAX_FMTS];
|
||||||
|
@ -403,8 +402,6 @@ static int get_format_str(struct display_format *fmt)
|
||||||
return -12;
|
return -12;
|
||||||
if (!strcasecmp("inverse", buf))
|
if (!strcasecmp("inverse", buf))
|
||||||
fmt->sort_inverse = true;
|
fmt->sort_inverse = true;
|
||||||
|
|
||||||
fmt->sort = true;
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case var_limit:
|
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_inverse = fmt->sort_inverse;
|
||||||
sort_limit = fmt->limit;
|
sort_limit = fmt->limit;
|
||||||
strip = fmt->strip;
|
strip = fmt->strip;
|
||||||
|
sort = true;
|
||||||
/* Check if sorting is forced. */
|
|
||||||
if (fmt->sort)
|
|
||||||
sort = true;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue