[gnome-music] searchview: Fix incorrect object use



commit 9a7fe0bd04a5440b4206e9f487b3629fb2a6f07a
Author: Atharva Veer <adveer_b17 it vjti ac in>
Date:   Sun May 3 18:36:43 2020 +0530

    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.

 gnomemusic/views/searchview.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gnomemusic/views/searchview.py b/gnomemusic/views/searchview.py
index ccd80e0d..b7375d1d 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.


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