[gnome-music/wip/mschraal/core: 189/190] coregrilo: Fix a fail in CoreGrilo



commit e77449e0ceab588a561ee86cd92c70caa855a065
Author: Marinus Schraal <mschraal gnome org>
Date:   Sun Jul 7 15:07:35 2019 +0200

    coregrilo: Fix a fail in CoreGrilo
    
    Likely to result in crashes.

 gnomemusic/coregrilo.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gnomemusic/coregrilo.py b/gnomemusic/coregrilo.py
index f4a8210e..7ad86bec 100644
--- a/gnomemusic/coregrilo.py
+++ b/gnomemusic/coregrilo.py
@@ -30,10 +30,11 @@ class CoreGrilo(GObject.GObject):
         if source.props.source_id == "grl-tracker-source":
             new_wrapper = GrlTrackerSource(
                 source, self._coremodel, self._coreselection, self)
+            self._wrappers.append(new_wrapper)
         elif source.props.source_id[:10] == "grl-dleyna":
             new_wrapper = GrlDLeynaSource(
                 source, self._coremodel, self._coreselection, self)
-        self._wrappers.append(new_wrapper)
+            self._wrappers.append(new_wrapper)
         print(new_wrapper, "added")
 
     def _on_source_removed(self, registry, source):


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