[gnome-music/wip/jfelder/fix-album-artist-selection: 1/4] Revert "coreartist: Load the model only if the artist is selected"



commit 8d3fe8d93c7c905144aad6d197ade5e8956f553d
Author: Jean Felder <jfelder src gnome org>
Date:   Wed Oct 16 15:59:44 2019 +0200

    Revert "coreartist: Load the model only if the artist is selected"
    
    This reverts commit 6d9ac69b0138d975e8f22dbf0cea77c8b5fa8acb.
    
    This commit broke the unselect_all calls in ArtistsView. Indeed, the
    items_changed method from the model needs to be called to unselect the
    artists when leaving selection mode.

 gnomemusic/coreartist.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/gnomemusic/coreartist.py b/gnomemusic/coreartist.py
index 2832a979..96b92d83 100644
--- a/gnomemusic/coreartist.py
+++ b/gnomemusic/coreartist.py
@@ -82,8 +82,7 @@ class CoreArtist(GObject.GObject):
         # a selection. Trigger loading of the model here if a selection
         # is requested, it will trigger the filled model update as
         # well.
-        if self._selected is True:
-            self.props.model.items_changed(0, 0, 0)
+        self.props.model.items_changed(0, 0, 0)
 
     @GObject.Property(type=str, default=None)
     def thumbnail(self):


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