diff options
author | Bastien Nocera <hadess@hadess.net> | 2020-03-30 13:05:01 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2020-03-30 13:07:44 +0200 |
commit | bfdd162b997067d6c62bf8528f206e47aaeacc8f (patch) | |
tree | 1ff14bcd7674e87ac9d807c34b8f70f3b8a4d49d | |
parent | 17120d6f6aa4425add77e421ff7236c62bb82471 (diff) | |
download | totem-bfdd162b997067d6c62bf8528f206e47aaeacc8f.tar.gz |
main: Don't throw warning when deleting state playlist
Don't throw a warning if the playlist that keeps the current state is
not present on disk.
-rw-r--r-- | src/totem-playlist.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/totem-playlist.c b/src/totem-playlist.c index 92453fd23..3b5c49e5f 100644 --- a/src/totem-playlist.c +++ b/src/totem-playlist.c @@ -338,8 +338,11 @@ totem_playlist_delete_session_playlist_cb (GObject *source_object, gboolean ret; ret = g_file_delete_finish (G_FILE (source_object), res, &error); - if (!ret && !g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) + if (!ret) { + if(!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED) && + !g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND)) g_warning ("Failed to delete session playlist: %s", error->message); + } } void |