diff gui/ui/gtk/url.c @ 35352:96cda43fe250

Don't unconditionally delete the old playlist. On loading a new file or URL, only delete the old playlist if a new file or URL has been selected. If the dialog has been cancelled, the old playlist shall remain.
author ib
date Thu, 22 Nov 2012 14:13:43 +0000
parents ee265b18d653
children f42cc2361ee4
line wrap: on
line diff
--- a/gui/ui/gtk/url.c	Thu Nov 22 14:01:41 2012 +0000
+++ b/gui/ui/gtk/url.c	Thu Nov 22 14:13:43 2012 +0000
@@ -103,6 +103,7 @@
      listMgr( URLLIST_ITEM_ADD,item );
 
      uiSetFileName( NULL,str,STREAMTYPE_STREAM ); guiInfo.NewPlay=GUI_FILE_NEW;
+     listMgr(PLAYLIST_DELETE, 0);
      add_to_gui_playlist(str, PLAYLIST_ITEM_APPEND);
      uiEventHandling( evPlay,0 );
     }