changeset 35554:5cccc59f4c5b

Calculate number of playlist tracks in any case. We won't reset to zero for an empty list else.
author ib
date Mon, 10 Dec 2012 02:25:03 +0000
parents 29f2de5e63d6
children 069de6f47ec1
files gui/dialog/playlist.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gui/dialog/playlist.c	Mon Dec 10 02:08:43 2012 +0000
+++ b/gui/dialog/playlist.c	Mon Dec 10 02:25:03 2012 +0000
@@ -236,9 +236,9 @@
 	    guiInfo.PlaylistNext = (curr.name ? False : True);
 	    guiInfo.Track = 1;
 	   }
-	  guiInfo.Tracks = (int) listMgr( PLAYLIST_ITEM_GET_POS,0 );
 	 }
 	else if (isPlaylistStreamtype && !guiInfo.Playing) uiUnsetFile();
+	guiInfo.Tracks = (int) listMgr( PLAYLIST_ITEM_GET_POS,0 );
 	free(curr.path);
 	free(curr.name);
        }