From 96f2091ee9a4a137e99c1a973b67822804a90a28 Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Wed, 29 Jun 2016 08:27:56 +0200 Subject: [PATCH] 8452: Geography : Attempting to print crashes (add parent to dialog) --- gramps/plugins/lib/maps/geography.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/gramps/plugins/lib/maps/geography.py b/gramps/plugins/lib/maps/geography.py index fa2413c7a..10d596535 100644 --- a/gramps/plugins/lib/maps/geography.py +++ b/gramps/plugins/lib/maps/geography.py @@ -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' : '', 'bold_end' : '', 'title': '' + place_title + '', - 'gid': gids} + 'gid': gids}, + parent=self.uistate.window ) else: self.mark = [None, None, None, None, None, None, None,