[gnome-maps] mapView: Guard against geoclue not present
- From: Jonas Danielsson <jonasdn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] mapView: Guard against geoclue not present
- Date: Sat, 19 Jul 2014 18:31:33 +0000 (UTC)
commit ca2e42bebe7e31aacde5e16ea3a1397bb71b5f84
Author: Jonas Danielsson <jonas threetimestwo org>
Date: Sat Jul 19 20:31:03 2014 +0200
mapView: Guard against geoclue not present
src/mapView.js | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/mapView.js b/src/mapView.js
index 9bf725b..4cfb5f3 100644
--- a/src/mapView.js
+++ b/src/mapView.js
@@ -144,6 +144,9 @@ const MapView = new Lang.Class({
},
_updateUserLocation: function() {
+ if (!Application.geoclue)
+ return;
+
let location = Application.geoclue.location;
if (!location)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]