[gnome-maps] searchResultMarker: No bubble for unnamed places
- From: Jonas Danielsson <jonasdn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] searchResultMarker: No bubble for unnamed places
- Date: Sat, 6 Sep 2014 15:58:17 +0000 (UTC)
commit 87a613a39feeacb72efcd88984055690ec0f9d2c
Author: Damián Nohales <damiannohales gmail com>
Date: Mon Sep 1 16:20:42 2014 -0300
searchResultMarker: No bubble for unnamed places
https://bugzilla.gnome.org/show_bug.cgi?id=735842
src/searchResultMarker.js | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/searchResultMarker.js b/src/searchResultMarker.js
index 689a2e7..b28240e 100644
--- a/src/searchResultMarker.js
+++ b/src/searchResultMarker.js
@@ -43,7 +43,10 @@ const SearchResultMarker = new Lang.Class({
},
_createBubble: function() {
- return new SearchResultBubble.SearchResultBubble({ place: this.place,
- mapView: this._mapView });
+ if (this.place.name) {
+ return new SearchResultBubble.SearchResultBubble({ place: this.place,
+ mapView: this._mapView });
+ } else
+ return null;
}
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]