From 8f45853db59a61484185abb87cff95635f28bee1 Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Fri, 13 May 2011 04:00:12 +0000 Subject: [PATCH] Only show progress if progress exists. (Patch from Adam Stein) svn: r17484 --- src/Filters/Rules/Person/_DeepRelationshipPathBetween.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Filters/Rules/Person/_DeepRelationshipPathBetween.py b/src/Filters/Rules/Person/_DeepRelationshipPathBetween.py index 2cbfba4af..70048a760 100644 --- a/src/Filters/Rules/Person/_DeepRelationshipPathBetween.py +++ b/src/Filters/Rules/Person/_DeepRelationshipPathBetween.py @@ -2,6 +2,7 @@ # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2009 Robert Ham +# Copyright (C) 2011 Adam Stein # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -111,7 +112,7 @@ def find_deep_relations(db, progress, person, path, seen, target_people): family_people = get_person_family_people(db, person, handle) for family_person in family_people: return_paths += find_deep_relations(db, progress, family_person, person_path, seen, target_people) - progress.step() + if progress: progress.step() return return_paths