From 4a47edc39c7a55f6c2103fe99c377493826210ba Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Sun, 27 Dec 2015 19:08:57 +0100 Subject: [PATCH] Geography : add transient parent + change message --- gramps/plugins/view/geoperson.py | 2 +- gramps/plugins/view/geoplaces.py | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/gramps/plugins/view/geoperson.py b/gramps/plugins/view/geoperson.py index 3082bd728..a014c83e4 100644 --- a/gramps/plugins/view/geoperson.py +++ b/gramps/plugins/view/geoperson.py @@ -306,7 +306,7 @@ class GeoPerson(GeoGraphyView): self.message_layer.clear_messages() self.kml_layer.clear() person_handle = self.uistate.get_active('Person') - person = dbstate.db.get_person_from_handle(person_handle) + person = dbstate.db.get_person_from_handle(person_handle) if person_handle else None if person is not None: # For each event, if we have a place, set a marker. self.load_kml_files(person) diff --git a/gramps/plugins/view/geoplaces.py b/gramps/plugins/view/geoplaces.py index 883f1f824..ef2c386e1 100644 --- a/gramps/plugins/view/geoplaces.py +++ b/gramps/plugins/view/geoplaces.py @@ -266,9 +266,10 @@ class GeoPlaces(GeoGraphyView): places_handle = dbstate.db.get_place_handles() except: return - progress = ProgressMeter(self.window_name, can_cancel=False) + progress = ProgressMeter(self.window_name, can_cancel=False, + parent=self.uistate.window) length = len(places_handle) - progress.set_pass(_('Selecting all places markers'), length) + progress.set_pass(_('Selecting all places'), length) for place_hdl in places_handle: place = dbstate.db.get_place_from_handle(place_hdl) self._create_one_place(place) @@ -276,9 +277,10 @@ class GeoPlaces(GeoGraphyView): progress.close() elif self.generic_filter: place_list = self.generic_filter.apply(dbstate.db) - progress = ProgressMeter(self.window_name, can_cancel=False) + progress = ProgressMeter(self.window_name, can_cancel=False, + parent=self.uistate.window) length = len(place_list) - progress.set_pass(_('Selecting all places markers'), length) + progress.set_pass(_('Selecting all places'), length) for place_handle in place_list: place = dbstate.db.get_place_from_handle(place_handle) self._create_one_place(place)