notmuch new: Fix progress notification on database upgrade.

This was firing continuously rather than just once per second as
intended.
This commit is contained in:
Carl Worth 2010-01-07 21:24:44 -08:00
parent e307e990c9
commit 1c86b48329

View file

@ -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);