diff gui/interface.c @ 34667:7c447e9db447

Remove global variable pointing to top of playlist. Add a corresponding listMgr command and use it instead.
author ib
date Wed, 22 Feb 2012 10:39:05 +0000
parents 4df4d842d5fb
children 697aaedfe59e
line wrap: on
line diff
--- a/gui/interface.c	Wed Feb 22 01:07:10 2012 +0000
+++ b/gui/interface.c	Wed Feb 22 10:39:05 2012 +0000
@@ -913,7 +913,7 @@
     if (save)
         listMgr(PLAYLIST_ITEM_SET_CURR, save);
     else
-        listMgr(PLAYLIST_ITEM_SET_CURR, plList);    // go to head, if plList was empty before
+        listMgr(PLAYLIST_ITEM_SET_CURR, listMgr(PLAYLIST_GET, 0));    // go to head, if plList was empty before
 
     if (save && result)
         listMgr(PLAYLIST_ITEM_DEL_CURR, 0);