From 991363e8e7152c238c5dffccbd620dd34e6bf70a Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Mon, 9 Jan 2012 18:20:21 +0000 Subject: [PATCH] warn user if nobody selected svn: r18730 --- src/plugins/graph/GVFamilyLines.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/graph/GVFamilyLines.py b/src/plugins/graph/GVFamilyLines.py index b4439d08a..93db40c10 100644 --- a/src/plugins/graph/GVFamilyLines.py +++ b/src/plugins/graph/GVFamilyLines.py @@ -305,6 +305,7 @@ class FamilyLinesReport(Report): self._families = set() # handle of families we need in the report self._deleted_people = 0 self._deleted_families = 0 + self._user = user menu = options.menu get_option_by_name = menu.get_option_by_name @@ -336,6 +337,9 @@ class FamilyLinesReport(Report): # the GIDs to either Person or to handles, so we may as well convert the # entire list right now and not have to deal with it ever again self._interest_set = set() + if not self._gidlist: + self._user.warn(_('Empty report'), + _('You did not specify anybody')) for gid in self._gidlist.split(): person = self._db.get_person_from_gramps_id(gid) if person: