From bb7f5fa52283979c327742ef5a895d466422c448 Mon Sep 17 00:00:00 2001 From: Paul Culley Date: Thu, 6 May 2021 10:19:03 -0500 Subject: [PATCH] Fix libplaceview to avoid exception when mapservice is no longer present (#1193) Fixes #12263 --- gramps/plugins/lib/libplaceview.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gramps/plugins/lib/libplaceview.py b/gramps/plugins/lib/libplaceview.py index 57b823c9e..24fbc092a 100644 --- a/gramps/plugins/lib/libplaceview.py +++ b/gramps/plugins/lib/libplaceview.py @@ -206,8 +206,10 @@ class PlaceBaseView(ListView): """ if action: action.set_state(value) - self.mapservice = mapkey = value.get_string() - config.set('interface.mapservice', mapkey) + self.mapservice = value.get_string() + else: + self.mapservice = value + config.set('interface.mapservice', self.mapservice) config.save() _ui = self.__create_maps_menu_actions() self.uimanager.add_ui_from_string(_ui)