[gnome-music] starhandlerwidget: Update call for new SongsView._songs_view name



commit 39f5960c515a28480c0c3e8fb34cd221429afd29
Author: Yann DELABY <y delaby zaclys net>
Date:   Thu Feb 11 01:47:24 2021 +0100

    starhandlerwidget: Update call for new SongsView._songs_view name
    
    With the template port of SongViews (MR !711), SongViews._view has been
    renamed to SongsView._songs_view.
    The call from starhandlerwidget has not been updated to the new name,
    causing Music to crash when trying to favorite a song from the songs
    list.
    This fix the crash by using the correct name.
    
    Close https://gitlab.gnome.org/GNOME/gnome-music/-/issues/441

 gnomemusic/widgets/starhandlerwidget.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gnomemusic/widgets/starhandlerwidget.py b/gnomemusic/widgets/starhandlerwidget.py
index 08df4e881..9e329b0c3 100644
--- a/gnomemusic/widgets/starhandlerwidget.py
+++ b/gnomemusic/widgets/starhandlerwidget.py
@@ -122,7 +122,7 @@ class StarHandlerWidget(object):
 
     def _on_star_toggled(self, widget, path):
         """Called if a star is clicked"""
-        model = self._parent._view.props.model
+        model = self._parent._songs_view.props.model
         try:
             _iter = model.get_iter(path)
         except ValueError:


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