From 9a50249f140a709e24f6ed988a5f90dfafcc93c2 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sat, 22 Apr 2006 04:04:02 +0000 Subject: [PATCH] * src/plugins/Desbrowser.py: check for active person svn: r6410 --- gramps2/ChangeLog | 1 + gramps2/src/plugins/Desbrowser.py | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 34f68b0f2..be8cb5d5c 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,4 +1,5 @@ 2006-04-21 Don Allingham + * src/plugins/Desbrowser.py: check for active person * src/GrampsDb/_ReadXML.py: fix typos * src/PluginUtils/_PluginMgr.py: handle module to description mapping * src/Editors/_EditRepoRef.py: fix typos diff --git a/gramps2/src/plugins/Desbrowser.py b/gramps2/src/plugins/Desbrowser.py index eb41dc9ec..c2075cb2a 100644 --- a/gramps2/src/plugins/Desbrowser.py +++ b/gramps2/src/plugins/Desbrowser.py @@ -65,6 +65,12 @@ class DesBrowse(Tool.Tool, ManagedWindow.ManagedWindow): self.active = dbstate.get_active_person() self.callback = callback + if not self.active: + ErrorDialog(_('Active person has not been set'), + _('You must select an active person for this ' + 'tool to work properly.')) + return + base = os.path.dirname(__file__) glade_file = base + os.sep + "desbrowse.glade"