8452: Geography : Attempting to print crashes (add parent to dialog)

This commit is contained in:
SNoiraud 2016-06-29 08:27:56 +02:00
parent f24ef15518
commit 96f2091ee9

View File

@ -183,8 +183,8 @@ class GeoGraphyView(OsmGps, NavigationView):
WarningDialog(
_("Could Not Set a Bookmark"),
_("A bookmark could not be set because "
"no one was selected."))
"no one was selected."),
parent=self.uistate.window)
def add_bookmark_from_popup(self, menu, handle):
if handle:
@ -196,7 +196,8 @@ class GeoGraphyView(OsmGps, NavigationView):
WarningDialog(
_("Could Not Set a Bookmark"),
_("A bookmark could not be set because "
"no one was selected."))
"no one was selected."),
parent=self.uistate.window)
def change_page(self):
"""
@ -820,8 +821,9 @@ class GeoGraphyView(OsmGps, NavigationView):
if Gtk.MAJOR_VERSION == 3 and Gtk.MINOR_VERSION < 11:
from gramps.gui.dialog import WarningDialog
WarningDialog(
_("You can't use the print functionality"),
_("Your Gtk version is too old."))
_("You can't use the print functionality"),
_("Your Gtk version is too old."),
parent=self.uistate.window)
return
req = self.osm.get_allocation()
@ -1014,7 +1016,8 @@ class GeoGraphyView(OsmGps, NavigationView):
'bold_start' : '<b>',
'bold_end' : '</b>',
'title': '<b>' + place_title + '</b>',
'gid': gids}
'gid': gids},
parent=self.uistate.window
)
else:
self.mark = [None, None, None, None, None, None, None,