[gnome-maps/wip/geoclue-refactor: 5/9] MapBubble: Guard against geoclue place being null
- From: Jonas Danielsson <jonasdn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/geoclue-refactor: 5/9] MapBubble: Guard against geoclue place being null
- Date: Tue, 25 Nov 2014 19:32:00 +0000 (UTC)
commit d9b7944e84b5d741f819acbc07eb463e590bea58
Author: Jonas Danielsson <jonas threetimestwo org>
Date: Tue Nov 25 19:04:00 2014 +0100
MapBubble: Guard against geoclue place being null
src/mapBubble.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/mapBubble.js b/src/mapBubble.js
index e8d2f0a..20b8183 100644
--- a/src/mapBubble.js
+++ b/src/mapBubble.js
@@ -143,7 +143,8 @@ const MapBubble = new Lang.Class({
if (routeFrom) {
from.place = this._place;
} else {
- from.place = Application.geoclue.place;
+ if (Application.geoclue.place)
+ from.place = Application.geoclue.place;
to.place = this._place;
}
this.destroy();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]