diff options
author | Carl Worth <cworth@cworth.org> | 2010-01-07 21:24:44 -0800 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-01-07 21:24:44 -0800 |
commit | 1c86b48329c0cd69b4353accda4d28739ec1c0f3 (patch) | |
tree | 7d4ea14ddfac77469ac42b95df413e36c5f379e8 /lib | |
parent | e307e990c9394b6426e55b28c748c265358a1c89 (diff) |
notmuch new: Fix progress notification on database upgrade.
This was firing continuously rather than just once per second as
intended.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/database.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/database.cc b/lib/database.cc index 6b8c998..831b4a1 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); |