[gnome-music/wip/jfelder/smart-playlist-no-removal] playlisstview: Disable songs deletion for smart playlists



commit 00ad8e09ea1c4b7dfa211604c9a2a8d82008170d
Author: Jean Felder <jfelder src gnome org>
Date:   Tue Sep 3 12:20:29 2019 +0200

    playlisstview: 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 2d368605..b7ab67c9 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.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]