Commit 11f2aed1 authored by Thomas Guillem's avatar Thomas Guillem

input: fix sort on nodes without children (fixes #15028)

parent a9bc71c0
...@@ -1176,7 +1176,7 @@ static int compar_node( const void *p1, const void *p2 ) ...@@ -1176,7 +1176,7 @@ static int compar_node( const void *p1, const void *p2 )
static void sort_subitems( input_item_node_t *p_node, static void sort_subitems( input_item_node_t *p_node,
input_item_compar_cb compar_cb ) input_item_compar_cb compar_cb )
{ {
if( p_node->i_children < 0 || !compar_cb ) if( p_node->i_children <= 0 || !compar_cb )
return; return;
p_node->compar_cb = compar_cb; p_node->compar_cb = compar_cb;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment