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):