[gnome-music/wip/gbsneto/contained-playlists: 24/29] a
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/gbsneto/contained-playlists: 24/29] a
- Date: Thu, 1 Dec 2016 23:27:35 +0000 (UTC)
commit 02d7d174751c3ed9d5a821256489a1763d7f9ac8
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Thu Dec 1 20:54:59 2016 -0200
a
gnomemusic/playlists.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/playlists.py b/gnomemusic/playlists.py
index d10aabf..fcd96fa 100644
--- a/gnomemusic/playlists.py
+++ b/gnomemusic/playlists.py
@@ -445,7 +445,7 @@ class Playlists(GObject.GObject):
new_playlist = Playlist(item.get_id(), utils.get_media_title(item))
new_playlist.grilo_item = item
- self.playlists[new_playlist] = new_playlist
+ self.playlists[new_playlist.id] = new_playlist
self.emit('playlist-added', new_playlist)
def cursor_callback(cursor, res, data):
@@ -487,7 +487,7 @@ class Playlists(GObject.GObject):
def update_callback(conn, res, data):
try:
conn.update_finish(res)
- self.emit('playlist-deleted', self.playlists[playlist.id])
+ self.emit('playlist-deleted', playlist)
del self.playlists[playlist.id]
except GLib.Error as error:
logger.warn("Error: %s, %s", error.__class__, error)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]