geography: bug 8450: Attempting to add a bookmark causes an error.
This commit is contained in:
parent
7ef7e3bbf5
commit
d36a72ee18
@ -181,11 +181,10 @@ class GeoGraphyView(OsmGps, NavigationView):
|
|||||||
self.geo_othermap[ident] = cairo.ImageSurface.create_from_png(fh)
|
self.geo_othermap[ident] = cairo.ImageSurface.create_from_png(fh)
|
||||||
#self.geo_othermap[ident] = cairo.ImageSurface.create_from_png(path)
|
#self.geo_othermap[ident] = cairo.ImageSurface.create_from_png(path)
|
||||||
|
|
||||||
def add_bookmark(self, menu, handle):
|
def add_bookmark(self, menu):
|
||||||
if handle:
|
mlist = self.selected_handles()
|
||||||
self.uistate.set_active(handle, self.navigation_type())
|
if mlist:
|
||||||
self.bookmarks.add(handle)
|
self.bookmarks.add(mlist[0])
|
||||||
self.bookmarks.redraw()
|
|
||||||
else:
|
else:
|
||||||
from gramps.gui.dialog import WarningDialog
|
from gramps.gui.dialog import WarningDialog
|
||||||
WarningDialog(
|
WarningDialog(
|
||||||
|
Loading…
Reference in New Issue
Block a user