ocarina: Hide empty playlists

If the playlist size == 0, then we don't need to show it.  This hides
the banned list when it doesn't contain any songs.

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
This commit is contained in:
Bryan Schumaker 2012-05-17 13:28:55 -04:00
parent ed5574f612
commit bd171423a6
1 changed files with 4 additions and 0 deletions

View File

@ -38,6 +38,10 @@ namespace ocarina
gtk_widget_thaw_child_notify(treeview);
gtk_tree_view_set_model(GTK_TREE_VIEW(treeview), filter);
set_label_text();
if (playlist->get_size() == 0)
gtk_widget_hide(box);
else
gtk_widget_show(box);
}
void Playlist::remove_index(unsigned int index)