changeset 35466:0583b12e11d7

Fix bug with playlist. The first file played twice in a newly created playlist that previously was empty.
author ib
date Sun, 02 Dec 2012 15:55:01 +0000
parents bb29a2a95d31
children 364387ae95f4
files gui/ui/gtk/playlist.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
 	   }
 	 }