From a6a580a7a6e51e466203dfdae2e80c4fef9f9625 Mon Sep 17 00:00:00 2001 From: Martin Wagner Date: Sat, 30 Oct 2021 21:51:37 +0200 Subject: [PATCH] removed duplicated code in AlbumList --- bin/mpdevil | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/bin/mpdevil b/bin/mpdevil index 9eca934..1bf8b48 100755 --- a/bin/mpdevil +++ b/bin/mpdevil @@ -2363,11 +2363,7 @@ class AlbumList(Gtk.IconView): GLib.idle_add(self._artist_popover.open, artist, genre, widget, event.x-h, event.y-v) def _on_item_activated(self, widget, path): - album=self._store[path][3] - year=self._store[path][4] - artist=self._store[path][5] - genre=self._artist_list.genre_list.get_selected() - self._client.album_to_playlist(album, artist, year, genre) + self._path_to_playlist(path) def _on_disconnected(self, *args): self.set_sensitive(False)