From 721cfa1a1cd3e16b8234bbfa75c78f5a455b0bc7 Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Wed, 29 Jun 2016 08:36:32 +0200 Subject: [PATCH] Geography : add parent to WarningDialog --- gramps/plugins/lib/maps/geography.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/gramps/plugins/lib/maps/geography.py b/gramps/plugins/lib/maps/geography.py index faedfaafe..a7f08c604 100644 --- a/gramps/plugins/lib/maps/geography.py +++ b/gramps/plugins/lib/maps/geography.py @@ -201,8 +201,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): """ @@ -217,7 +217,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): """ @@ -846,7 +847,8 @@ class GeoGraphyView(OsmGps, NavigationView): from gramps.gui.dialog import WarningDialog WarningDialog( _("You can't use the print functionality"), - _("Your Gtk version is too old.")) + _("Your Gtk version is too old."), + parent=self.uistate.window) return req = self.osm.get_allocation() @@ -1040,7 +1042,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,