[balsa] mailbox-pop3: Fix progress dialogue on error



commit f2b5eb09ae8815c5d3653be1dd78774b22829d7b
Author: Albrecht Dreß <albrecht dress arcor de>
Date:   Thu Jan 11 13:37:55 2018 -0500

    mailbox-pop3: Fix progress dialogue on error
    
    Signed-off-by: Peter Bloomfield <PeterBloomfield bellsouth net>

 ChangeLog               |    8 ++++++++
 libbalsa/mailbox_pop3.c |    5 +++--
 2 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 61dafac..89f0bfa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2018-01-11  Albrecht Dreß <albrecht dress arcor de>
+
+       Fix progress dialogue on error
+
+       * libbalsa/mailbox_pop3.c (libbalsa_mailbox_pop3_check): send
+       the “finalise” notification to the dialogue even if opening
+       the connection fails.
+
 2018-01-06  Albrecht Dreß <albrecht dress arcor de>
 
        Fix the meson build
diff --git a/libbalsa/mailbox_pop3.c b/libbalsa/mailbox_pop3.c
index 199a7da..bfcc981 100644
--- a/libbalsa/mailbox_pop3.c
+++ b/libbalsa/mailbox_pop3.c
@@ -624,7 +624,7 @@ libbalsa_mailbox_pop3_check(LibBalsaMailbox * mailbox)
 
        server = LIBBALSA_MAILBOX_REMOTE_SERVER(mbox);
 
-       /* open the mailbox connection and get the messages list */
+       /* open the mailbox connection and get the messages list (note: initiates the progress dialogue) */
        pop = libbalsa_mailbox_pop3_startup(server, mbox, mailbox->name, &msg_list);
 
        /* proceed on success only */
@@ -691,8 +691,9 @@ libbalsa_mailbox_pop3_check(LibBalsaMailbox * mailbox)
 
                /* done - clean up */
                g_object_unref(G_OBJECT(pop));
-               libbalsa_mailbox_progress_notify(mailbox, LIBBALSA_NTFY_FINISHED, 1.0, _("Finished"));
        }
+
+       libbalsa_mailbox_progress_notify(mailbox, LIBBALSA_NTFY_FINISHED, 1.0, _("Finished"));
 }
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]