changeset 3478:481a4a88d3ec trunk

Use old iterator when new one isn't found
author Kieran Clancy <clancy.kieran+audacious@gmail.com>
date Mon, 10 Sep 2007 14:16:20 +0930
parents 57f4971b7086
children 26910525cec8
files src/audacious/playlist.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/playlist.c	Mon Sep 10 13:50:18 2007 +0930
+++ b/src/audacious/playlist.c	Mon Sep 10 14:16:20 2007 +0930
@@ -1799,7 +1799,7 @@
     if (playlist != playlist_get_active()) {
         old_iter = playlists_iter;
         playlists_iter = g_list_find(playlists, playlist);
-        if (!playlists_iter) playlists_iter = playlists;
+        if (!playlists_iter) playlists_iter = old_iter;
         plc->plc_read(filename, pos);
         playlists_iter = old_iter;
     } else {