[balsa/gtk3] Make sure view->open is correct before saving view



commit 6ffcc064658eeb1bce64a7e1a9f3f5e224d49b34
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Sat Mar 16 10:26:25 2013 -0400

    Make sure view->open is correct before saving view
    
        * src/mailbox-node.c (balsa_mailbox_node_dispose): make sure
        LibBalsaMailboxView::open is correct before saving the view.

 ChangeLog          |    5 +++++
 src/mailbox-node.c |    2 ++
 2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 8d56e21..14c82b3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-03-16  Peter Bloomfield
+
+       * src/mailbox-node.c (balsa_mailbox_node_dispose): make sure
+       LibBalsaMailboxView::open is correct before saving the view.
+
 2013-03-15  Peter Bloomfield
 
        * src/balsa-app.c (append_url_if_open): libbalsa_conf_foreach
diff --git a/src/mailbox-node.c b/src/mailbox-node.c
index 1b266e5..4e9f3ce 100644
--- a/src/mailbox-node.c
+++ b/src/mailbox-node.c
@@ -195,6 +195,8 @@ balsa_mailbox_node_dispose(GObject * object)
     LibBalsaMailbox *mailbox = mn->mailbox;
 
     if (mailbox) {
+        libbalsa_mailbox_set_open(mailbox,
+                                  libbalsa_mailbox_is_open(mailbox));
         config_save_mailbox_view(mailbox->url, mailbox->view);
        if (balsa_app.main_window)
            balsa_window_close_mbnode(balsa_app.main_window, mn);


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