[balsa] mailbox: Reset messages-threaded in open method
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa] mailbox: Reset messages-threaded in open method
- Date: Sun, 2 Feb 2020 21:16:18 +0000 (UTC)
commit 2f60f9224412db3774b17866b5d750c25752f464
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Sun Feb 2 16:08:11 2020 -0500
mailbox: Reset messages-threaded in open method
Reset messages-threaded in the open method instead of the close method.
* libbalsa/mailbox.c (libbalsa_mailbox_open), (libbalsa_mailbox_close):
ChangeLog | 8 ++++++++
libbalsa/mailbox.c | 2 +-
2 files changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/ChangeLog b/ChangeLog
index bff31af0e..00be7999d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2020-02-02 Peter Bloomfield <pbloomfield bellsouth net>
+
+ mailbox: Reset messages-threaded in the open method instead of
+ the close method.
+
+ * libbalsa/mailbox.c (libbalsa_mailbox_open),
+ (libbalsa_mailbox_close):
+
2020-02-02 Peter Bloomfield <pbloomfield bellsouth net>
Build: Do not check for getaddrinfo
diff --git a/libbalsa/mailbox.c b/libbalsa/mailbox.c
index c6b163ec3..2c23a9a74 100644
--- a/libbalsa/mailbox.c
+++ b/libbalsa/mailbox.c
@@ -602,6 +602,7 @@ libbalsa_mailbox_open(LibBalsaMailbox * mailbox, GError **err)
saved_state = priv->state;
priv->state = LB_MAILBOX_STATE_OPENING;
+ priv->messages_threaded = FALSE;
retval =
LIBBALSA_MAILBOX_GET_CLASS(mailbox)->open_mailbox(mailbox, err);
if(retval) {
@@ -659,7 +660,6 @@ libbalsa_mailbox_close(LibBalsaMailbox * mailbox, gboolean expunge)
g_source_remove(priv->set_threading_idle_id);
priv->set_threading_idle_id = 0;
}
- priv->messages_threaded = FALSE;
if (priv->run_filters_idle_id != 0) {
g_source_remove(priv->run_filters_idle_id);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]