From: Carl Worth Date: Fri, 8 Jan 2010 05:24:44 +0000 (-0800) Subject: notmuch new: Fix progress notification on database upgrade. X-Git-Tag: 0.1~149 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=1c86b48329c0cd69b4353accda4d28739ec1c0f3 notmuch new: Fix progress notification on database upgrade. This was firing continuously rather than just once per second as intended. --- diff --git a/lib/database.cc b/lib/database.cc index 6b8c9989..831b4a16 100644 --- a/lib/database.cc +++ b/lib/database.cc @@ -737,8 +737,10 @@ notmuch_database_upgrade (notmuch_database_t *notmuch, notmuch_messages_has_more (messages); notmuch_messages_advance (messages)) { - if (do_progress_notify) + if (do_progress_notify) { progress_notify (closure, count, total); + do_progress_notify = 0; + } message = notmuch_messages_get (messages);