[gnome-music/wip/mschraal/selection-fixes: 2/4] Revert "coremodel: Load the model only if the album is selected"



commit 3d3e0892e291fa22209f6b3a4e9d6006458d7094
Author: Marinus Schraal <mschraal gnome org>
Date:   Fri Oct 4 12:48:08 2019 +0200

    Revert "coremodel: Load the model only if the album is selected"
    
    This reverts commit 4aaf10b9a58507240a4f3c0ddfbd6f7a42f31205.
    
    Makes deselecting fail.

 gnomemusic/corealbum.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/gnomemusic/corealbum.py b/gnomemusic/corealbum.py
index 70bce7fc..30455742 100644
--- a/gnomemusic/corealbum.py
+++ b/gnomemusic/corealbum.py
@@ -110,5 +110,4 @@ class CoreAlbum(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)


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