Fix a little glitch

This commit is contained in:
Přemysl Eric Janouch 2017-06-05 19:50:04 +02:00
parent 7b41ae1658
commit 77c78d8866
Signed by: p
GPG Key ID: B715679E3A361BE6
1 changed files with 4 additions and 1 deletions

View File

@ -2210,7 +2210,10 @@ library_tab_on_data (const struct mpd_response *response,
(int (*) (const void *, const void *)) library_tab_compare);
g_library_tab.super.item_count = items->len;
// Don't force the selection visible when there's no need to touch it
if (g_library_tab.super.item_selected >= (int) items->len)
app_move_selection (0);
app_invalidate ();
}