diff options
author | Jean Felder <jfelder@src.gnome.org> | 2019-09-10 13:57:24 +0200 |
---|---|---|
committer | Jean Felder <jean.felder@gmail.com> | 2019-09-12 21:13:27 +0000 |
commit | e3106d88638d5f90832e5af88b4778e81fd012e7 (patch) | |
tree | e3b9d88c1287f4abf1593789a7d5d554785c32c4 /data/ui/ArtistAlbumWidget.ui | |
parent | 0ecb82f23b5f527ad0e18343c81c20d045f9c822 (diff) |
artistalbumswidget: Prevent the albums from being selectable
If the model has already been loaded (if the artist has already been
selected from ArtistsView), _on_model_items_changed method will never
be called. Therefore, the rows associated with each album will be
selectable.
Fix the issue by creating the rows of each album in _add_album method
and setting the selectable property to False. Indeed, _add_album is
called everytime, whether the model has already been loaded or not.
Related: #300
Diffstat (limited to 'data/ui/ArtistAlbumWidget.ui')
-rw-r--r-- | data/ui/ArtistAlbumWidget.ui | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/data/ui/ArtistAlbumWidget.ui b/data/ui/ArtistAlbumWidget.ui index a5ca2d2e..54ccb83f 100644 --- a/data/ui/ArtistAlbumWidget.ui +++ b/data/ui/ArtistAlbumWidget.ui @@ -5,6 +5,7 @@ <template parent="GtkBox" class="ArtistAlbumWidget"> <property name="margin_top">30</property> <property name="margin_right">120</property> + <property name="visible">True</property> <child> <object class="CoverStack" id="_cover_stack"> <property name="visible">True</property> |