Geography: Avoid crash is OsmGps not initialized
This commit is contained in:
parent
30050d403d
commit
e7e46cb067
@ -227,8 +227,9 @@ class GeoGraphyView(OsmGps, NavigationView):
|
|||||||
NavigationView.change_page(self)
|
NavigationView.change_page(self)
|
||||||
self.uistate.clear_filter_results()
|
self.uistate.clear_filter_results()
|
||||||
self.end_selection = None
|
self.end_selection = None
|
||||||
self.osm.grab_focus()
|
if self.osm:
|
||||||
self.set_crosshair(config.get("geography.show_cross"))
|
self.osm.grab_focus()
|
||||||
|
self.set_crosshair(config.get("geography.show_cross"))
|
||||||
|
|
||||||
def do_size_request(self, requisition):
|
def do_size_request(self, requisition):
|
||||||
"""
|
"""
|
||||||
@ -271,8 +272,9 @@ class GeoGraphyView(OsmGps, NavigationView):
|
|||||||
if self.active:
|
if self.active:
|
||||||
self.bookmarks.redraw()
|
self.bookmarks.redraw()
|
||||||
self.build_tree()
|
self.build_tree()
|
||||||
self.osm.grab_focus()
|
if self.osm:
|
||||||
self.set_crosshair(config.get("geography.show_cross"))
|
self.osm.grab_focus()
|
||||||
|
self.set_crosshair(config.get("geography.show_cross"))
|
||||||
|
|
||||||
def can_configure(self):
|
def can_configure(self):
|
||||||
"""
|
"""
|
||||||
@ -610,6 +612,8 @@ class GeoGraphyView(OsmGps, NavigationView):
|
|||||||
"""
|
"""
|
||||||
Create all markers for the specified person.
|
Create all markers for the specified person.
|
||||||
"""
|
"""
|
||||||
|
if self.marker_layer is None:
|
||||||
|
return
|
||||||
self.remove_all_markers()
|
self.remove_all_markers()
|
||||||
self.remove_all_gps()
|
self.remove_all_gps()
|
||||||
self.remove_all_tracks()
|
self.remove_all_tracks()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user