summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAtharva Veer <adveer_b17@it.vjti.ac.in>2020-05-03 18:36:43 +0530
committerMarinus Schraal <mschraal@gnome.org>2020-05-04 01:10:56 +0200
commitf8295fc5f16fd910ed13f7bfd37c9c9158a33043 (patch)
tree963f3b9644570104cc3a6be6c5a55b7b2f4619ad
parent12d5a46975046bd04c9f309e0b603e9840efa9d4 (diff)
searchview: Fix incorrect object use
The artist FlowBox size allocator is incorrectly using the album FlowBox object in one location, which in rare occasions can cause a crash. Use the artist FlowBox object instead.
-rw-r--r--gnomemusic/views/searchview.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnomemusic/views/searchview.py b/gnomemusic/views/searchview.py
index 306392fa..1eb83657 100644
--- a/gnomemusic/views/searchview.py
+++ b/gnomemusic/views/searchview.py
@@ -298,7 +298,7 @@ class SearchView(Gtk.Stack):
if nb_children == 0:
return
- first_child = self._album_flowbox.get_child_at_index(0)
+ first_child = self._artist_flowbox.get_child_at_index(0)
# FIXME: It looks like it is possible that the widget is not
# yet created, resulting in a crash with first_child being
# None.