From 99b7fc8815cc35739a9db23b9acc7300d6b70033 Mon Sep 17 00:00:00 2001 From: prculley Date: Tue, 17 Jan 2017 08:42:22 -0600 Subject: [PATCH] Fix updatecallback to show first progress step --- gramps/gen/updatecallback.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gramps/gen/updatecallback.py b/gramps/gen/updatecallback.py index 6d80d0832..3e8539d60 100644 --- a/gramps/gen/updatecallback.py +++ b/gramps/gen/updatecallback.py @@ -72,7 +72,7 @@ class UpdateCallback: Reset the count to zero. """ self.count = 0 - self.oldval = 0 + self.oldval = -1 self.oldtime = 0 self.text = text @@ -96,7 +96,7 @@ class UpdateCallback: Called when the count is updated. """ self.count += 1 - if not count: + if count is None: count = self.count newval = int(100 * count/self.total) newtime = time.time()