diff gui/interface.c @ 35558:59361080b09e

Limit playlist reset to first item after playback. Only reset if playing, not if playback has been stopped by user.
author ib
date Mon, 10 Dec 2012 12:46:56 +0000
parents 11c649dc2907
children 14e36699a6e7
line wrap: on
line diff
--- a/gui/interface.c	Mon Dec 10 12:43:07 2012 +0000
+++ b/gui/interface.c	Mon Dec 10 12:46:56 2012 +0000
@@ -847,7 +847,7 @@
 
                 if (!curr)
                     uiUnsetFile();
-                else if (curr != listMgr(PLAYLIST_GET, 0)) {
+                else if ((curr != listMgr(PLAYLIST_GET, 0)) && guiInfo.Playing) {
                     curr = listMgr(PLAYLIST_ITEM_SET_CURR, listMgr(PLAYLIST_GET, 0));
                     uiSetFile(curr->path, curr->name, STREAMTYPE_FILE);
                     guiInfo.Track = 1;