diff options
Diffstat (limited to 'src/modes/thread_index/query_loader.cc')
-rw-r--r-- | src/modes/thread_index/query_loader.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/modes/thread_index/query_loader.cc b/src/modes/thread_index/query_loader.cc index fae2e1d..40f384b 100644 --- a/src/modes/thread_index/query_loader.cc +++ b/src/modes/thread_index/query_loader.cc @@ -179,6 +179,8 @@ namespace Astroid { notmuch_threads_destroy (threads); notmuch_query_destroy (nmquery); + run = false; // on_thread_changed will not check lock + if (!in_destructor) stats_ready.emit (); // update loading status @@ -186,8 +188,6 @@ namespace Astroid { if (!in_destructor) queue_has_data.emit (); - run = false; // on_thread_changed will not check lock - if (!in_destructor) deferred_threads_d.emit (); @@ -220,7 +220,6 @@ namespace Astroid { LOG (debug) << "ql: loaded " << loaded_threads << " threads."; if (!in_destructor && !list_view->filter_txt.empty()) stats_ready.emit (); } - db.close (); } } |