changeset 35577:b356942130df

Fix setting PlaylistNext after a playlist change. It doesn't depend on the previous state of the list, but the playing state. (We would have a two times playback of the first item after a change in stop mode else.)
author ib
date Wed, 12 Dec 2012 17:33:01 +0000
parents 2508973357da
children d186ebe43c68
files gui/dialog/playlist.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gui/dialog/playlist.c	Wed Dec 12 17:18:01 2012 +0000
+++ b/gui/dialog/playlist.c	Wed Dec 12 17:33:01 2012 +0000
@@ -237,7 +237,7 @@
 	   {
 	    uiSetFile( item->path,item->name,STREAMTYPE_FILE );
 	    guiInfo.NewPlay = GUI_FILE_NEW;
-	    guiInfo.PlaylistNext = (curr.name ? False : True);
+	    guiInfo.PlaylistNext = !guiInfo.Playing;
 	    guiInfo.Track = 1;
 	   }
 	 }