# HG changeset patch # User ib # Date 1354463701 0 # Node ID 0583b12e11d7e44e45e983b83d35b11b120d8df5 # Parent bb29a2a95d3164aee29537263bbe5ec7e4a379da Fix bug with playlist. The first file played twice in a newly created playlist that previously was empty. diff -r bb29a2a95d31 -r 0583b12e11d7 gui/ui/gtk/playlist.c --- a/gui/ui/gtk/playlist.c Sun Dec 02 14:08:49 2012 +0000 +++ b/gui/ui/gtk/playlist.c Sun Dec 02 15:55:01 2012 +0000 @@ -234,7 +234,7 @@ uiUnsetFile(); uiSetFile( item->path,item->name,STREAMTYPE_FILE ); guiInfo.NewPlay = GUI_FILE_NEW; - guiInfo.PlaylistNext = 0; + guiInfo.PlaylistNext = (curr.name ? 0 : 1); guiInfo.Track = 1; } }