[gnome-music/38-starhandlerwidget] starhandlerwidget: Update call for new SongsView._songs_view name
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/38-starhandlerwidget] starhandlerwidget: Update call for new SongsView._songs_view name
- Date: Tue, 23 Feb 2021 12:15:20 +0000 (UTC)
commit 79307bf7ffa2d357e541830f3ce51fb4a8c5a82b
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 2657237f8..f25cd681e 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]