[gnome-music/wip/jfelder/3-34-album-artist-unselect-all-fix: 2/4] Revert "coremodel: Load the model only if the album is selected"
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/3-34-album-artist-unselect-all-fix: 2/4] Revert "coremodel: Load the model only if the album is selected"
- Date: Thu, 17 Oct 2019 12:47:36 +0000 (UTC)
commit 399f3dfc8d6783797db2c7465b0166680794e757
Author: Jean Felder <jfelder src gnome org>
Date: Wed Oct 16 16:04:15 2019 +0200
Revert "coremodel: Load the model only if the album is selected"
This reverts commit 4aaf10b9a58507240a4f3c0ddfbd6f7a42f31205.
This commit broke the unselect_all calls in AlbumsView. Indeed, the
items_changed method from the model needs to be called to unselect the
albums when leaving selection mode.
(cherry picked from commit fa1d1e74e9d9f3cc791146d2d39437202e04b9e5)
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]