[gnome-music] playlists: Fix the async playlist creation
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] playlists: Fix the async playlist creation
- Date: Thu, 15 Dec 2016 15:51:59 +0000 (UTC)
commit 4b0fadd1819bbb55cbc20c379d0ae4a079afb4a4
Author: Marinus Schraal <mschraal src gnome org>
Date: Thu Dec 15 16:34:19 2016 +0100
playlists: Fix the async playlist creation
The code was erroneously iterating over the results, we just need the
first one.
gnomemusic/playlists.py | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/gnomemusic/playlists.py b/gnomemusic/playlists.py
index 6cee3c4..7d2ed69 100644
--- a/gnomemusic/playlists.py
+++ b/gnomemusic/playlists.py
@@ -309,10 +309,6 @@ class Playlists(GObject.GObject):
logger.warn("Error: %s, %s", err.__class__, err)
return
- if has_next:
- cursor.next_async(None, cursor_callback, data)
- return
-
playlist_id = cursor.get_integer(0)
grilo.get_playlist_with_id(playlist_id, get_callback)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]