changeset 35416:79c77d8a34c7

Set track counter on guiPlaylistInitialize(). The files are either enqueued or there will be no play event (evPlay). Either way the track counter must be initialized. Based on a patch by Hans-Dieter Kosch, hdkosch kabelbw de.
author ib
date Thu, 29 Nov 2012 13:51:15 +0000
parents 725ff1d87a9a
children 5875084661d8
files gui/interface.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gui/interface.c	Thu Nov 29 12:31:49 2012 +0000
+++ b/gui/interface.c	Thu Nov 29 13:51:15 2012 +0000
@@ -864,6 +864,9 @@
     if (enqueue)
         filename = NULL;            // don't start playing
 
+    if (result)
+        guiInfo.Track = 1;
+
     return result;
 }