[totem] main: Don't save empty playlists



commit b720cdd388976778f2b9948fc2972f34624d1792
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Mar 11 13:33:22 2013 +0100

    main: Don't save empty playlists

 src/totem-playlist.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/totem-playlist.c b/src/totem-playlist.c
index c751d92..b65c746 100644
--- a/src/totem-playlist.c
+++ b/src/totem-playlist.c
@@ -447,7 +447,7 @@ totem_playlist_save_session_playlist (TotemPlaylist *playlist,
                 * even to remove the existing session */
                return;
        }
-       if (!playlist->priv->save) {
+       if (!playlist->priv->save || PL_LEN == 0) {
                GFile *file;
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]