[gnome-music/wip/mschraal/searchview-crash-3-36] searchview: Fix incorrect object use
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/searchview-crash-3-36] searchview: Fix incorrect object use
- Date: Sun, 3 May 2020 23:11:35 +0000 (UTC)
commit f8295fc5f16fd910ed13f7bfd37c9c9158a33043
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 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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]