Don't display when no url

svn: r11841
This commit is contained in:
Benny Malengier 2009-02-04 08:16:48 +00:00
parent 2176bbfbf9
commit 7d9d27b22d

View File

@ -19,7 +19,7 @@
# #
""" """
Google Maps map service. Open place in maps.google.com Base class for map services. Example: open place in openstreetmap.org
""" """
#------------------------------------------------------------------------ #------------------------------------------------------------------------
@ -93,7 +93,8 @@ class MapService():
def __display(self): def __display(self):
"""Show the url in an external browser""" """Show the url in an external browser"""
GrampsDisplay.url(self.url) if self.url:
GrampsDisplay.url(self.url)
def _free(self): def _free(self):
"""Allow garbage collection to do it's work""" """Allow garbage collection to do it's work"""