[gnome-maps/gnome-3-28] mapView: Init a signal ID before use



commit 8aa4f10a4c0f1a8aaf675897f605d695c65be78d
Author: Marcus Lundblad <ml update uu se>
Date:   Mon Apr 2 22:58:15 2018 +0200

    mapView: Init a signal ID before use
    
    The _storeId source needs to be set before
    creating the map view to avoid a "property undefined"
    error when running with --local.

 src/mapView.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/mapView.js b/src/mapView.js
index 0e05c60..300072f 100644
--- a/src/mapView.js
+++ b/src/mapView.js
@@ -142,6 +142,7 @@ var MapView = GObject.registerClass({
         let mapType = params.mapType || MapType.STREET;
         delete params.mapType;
 
+        this._storeId = 0;
         this.view = this._initView();
         this._initLayers();
 
@@ -153,7 +154,6 @@ var MapView = GObject.registerClass({
                                     this._updateUserLocation.bind(this));
         Application.geoclue.connect('notify::state',
                                     this._updateUserLocation.bind(this));
-        this._storeId = 0;
         this._connectRouteSignals();
     }
 


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