From 2d461bf09c20f692279cee13938b48a6200e260a Mon Sep 17 00:00:00 2001 From: Jean Felder Date: Tue, 3 Sep 2019 12:20:29 +0200 Subject: [PATCH] playlistsview: Disable songs deletion for smart playlists Songs from a smart playlist are automatically generated. Therefore, they cannot be manually removed. This fixes a regression introduced during the core rewrite. Closes: #309 --- gnomemusic/views/playlistsview.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gnomemusic/views/playlistsview.py b/gnomemusic/views/playlistsview.py index 2d368605f..b7ab67c91 100644 --- a/gnomemusic/views/playlistsview.py +++ b/gnomemusic/views/playlistsview.py @@ -220,6 +220,7 @@ class PlaylistsView(BaseView): self._playlist_rename_action.set_enabled(not playlist.props.is_smart) self._playlist_delete_action.set_enabled(not playlist.props.is_smart) + self._remove_song_action.set_enabled(not playlist.props.is_smart) def _on_playlist_activation_request(self, klass, playlist): """Selects and starts playing a playlist. -- GitLab