summaryrefslogtreecommitdiff
path: root/src/totem-playlist.c
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2013-03-11 13:33:22 +0100
committerBastien Nocera <hadess@hadess.net>2013-03-11 13:33:22 +0100
commitb720cdd388976778f2b9948fc2972f34624d1792 (patch)
tree7541ebc7ba33331537d71055e3e4112319b4331b /src/totem-playlist.c
parentb67b31b5c25c1358169523003701bde99dbd70a4 (diff)
downloadtotem-b720cdd388976778f2b9948fc2972f34624d1792.tar.gz
main: Don't save empty playlists
Diffstat (limited to 'src/totem-playlist.c')
-rw-r--r--src/totem-playlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/totem-playlist.c b/src/totem-playlist.c
index c751d92a7..b65c74653 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;