Crash when canceling selection while the Artists tab is empty
Using 41.0 from Arch Linux: https://github.com/archlinux/svntogit-packages/blob/9f8462e1b157d9cd3efac4b322a4e0465e5d23f3/trunk/PKGBUILD
How to reproduce:
- Open the Artists tab with no artist
- Enter in selection mode
- Cancel
janv. 29 21:46:15 org.gnome.Music.desktop[48900]: Traceback (most recent call last):
janv. 29 21:46:15 org.gnome.Music.desktop[48900]: File "/usr/lib/python3.10/site-packages/gi/_propertyhelper.py", line 401, in obj_set_property
janv. 29 21:46:15 org.gnome.Music.desktop[48900]: prop.fset(self, value)
janv. 29 21:46:15 org.gnome.Music.desktop[48900]: File "/usr/lib/python3.10/site-packages/gnomemusic/views/artistsview.py", line 202, in selection_mode
janv. 29 21:46:15 org.gnome.Music.desktop[48900]: self.deselect_all()
janv. 29 21:46:15 org.gnome.Music.desktop[48900]: File "/usr/lib/python3.10/site-packages/gnomemusic/views/artistsview.py", line 223, in deselect_all
janv. 29 21:46:15 org.gnome.Music.desktop[48900]: artist_albums = self._artist_view.get_visible_child().get_child()
janv. 29 21:46:15 org.gnome.Music.desktop[48900]: AttributeError: 'NoneType' object has no attribute 'get_child'
Edited by Léo