From d337cff88134652beddd20bc757accba9a721e6e Mon Sep 17 00:00:00 2001 From: Lars Kotthoff Date: Tue, 27 Nov 2018 18:56:12 -0700 Subject: more misc improvements --- src/modes/thread_index/query_loader.cc | 5 ++--- 1 file 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 (); } } -- cgit v1.2.3