Skip to content

Commit

Permalink
gtkui: Minor loop optimization.
Browse files Browse the repository at this point in the history
  • Loading branch information
radioactiveman committed Sep 10, 2015
1 parent cf5aae8 commit bca06bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gtkui/ui_playlist_notebook.cc
Expand Up @@ -362,8 +362,9 @@ void ui_playlist_notebook_create_tab (int playlist)
void ui_playlist_notebook_populate ()
{
int playlist = aud_playlist_get_active ();
int playlist_count = aud_playlist_count ();

for (int count = 0; count < aud_playlist_count (); count ++)
for (int count = 0; count < playlist_count; count ++)
ui_playlist_notebook_create_tab (count);

gtk_notebook_set_current_page (UI_PLAYLIST_NOTEBOOK, playlist);
Expand Down

0 comments on commit bca06bc

Please sign in to comment.