[gnome-music] window: Rename playlist variable to avoid confusion
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] window: Rename playlist variable to avoid confusion
- Date: Mon, 5 Feb 2018 12:10:39 +0000 (UTC)
commit 3faeca1e06e4ef24572bfeaca4c0e0a3e7f4c304
Author: Jean Felder <jean felder gmail com>
Date: Tue Jan 30 00:40:57 2018 +0100
window: Rename playlist variable to avoid confusion
gnomemusic/window.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gnomemusic/window.py b/gnomemusic/window.py
index 09bf634..0f2772b 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -54,7 +54,7 @@ import logging
logger = logging.getLogger(__name__)
tracker = TrackerWrapper().tracker
-playlist = Playlists.get_default()
+playlists = Playlists.get_default()
class Window(Gtk.ApplicationWindow):
@@ -564,8 +564,8 @@ class Window(Gtk.ApplicationWindow):
playlist_dialog = PlaylistDialog(
self, self.views[View.PLAYLIST].pl_todelete.get('playlist'))
if playlist_dialog.run() == Gtk.ResponseType.ACCEPT:
- playlist.add_to_playlist(playlist_dialog.get_selected(),
- selected_songs)
+ playlists.add_to_playlist(
+ playlist_dialog.get_selected(), selected_songs)
self.toolbar.set_selection_mode(False)
playlist_dialog.destroy()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]