From 82646d0d674a3ab102644d604f5b1be3d4b5cb90 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Wed, 21 Jan 2015 23:03:23 +0000 Subject: [PATCH] 7533: Check for active person in session log gramplet --- gramps/plugins/gramplet/sessionloggramplet.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gramps/plugins/gramplet/sessionloggramplet.py b/gramps/plugins/gramplet/sessionloggramplet.py index 2497a8c42..22e2bcb5e 100644 --- a/gramps/plugins/gramplet/sessionloggramplet.py +++ b/gramps/plugins/gramplet/sessionloggramplet.py @@ -65,7 +65,8 @@ class LogGramplet(Gramplet): lambda handles: self.log('Family', 'Edited', handles)) def active_changed(self, handle): - self.log('Person', 'Selected', [handle]) + if handle: + self.log('Person', 'Selected', [handle]) def log(self, ltype, action, handles): for handle in set(handles):