[balsa/gtk3] Mark view out-of-sync only if it really is



commit a7c8b5c10fd8a97387ff521545a2380161d9fb2d
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Tue Feb 26 10:05:50 2013 -0500

    Mark view out-of-sync only if it really is
    
        * src/balsa-app.c (append_url_if_open): mark view out-of-sync
        only if it really is.

 ChangeLog       |    5 +++++
 src/balsa-app.c |   12 +++++++-----
 2 files changed, 12 insertions(+), 5 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index b378408..38794f3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2013-02-26  Peter Bloomfield
 
+       * src/balsa-app.c (append_url_if_open): mark view out-of-sync
+       only if it really is.
+
+2013-02-26  Peter Bloomfield
+
        * src/balsa-app.c (append_url_if_open),
        (open_mailboxes_idle_cb): if we are not remembering open
        mailboxes, forget them.
diff --git a/src/balsa-app.c b/src/balsa-app.c
index a9fa8f7..4587b12 100644
--- a/src/balsa-app.c
+++ b/src/balsa-app.c
@@ -498,12 +498,14 @@ static void
 append_url_if_open(const gchar * url, LibBalsaMailboxView * view,
                    GPtrArray * array)
 {
-    if (balsa_app.remember_open_mboxes) {
-        if (view->open)
+    if (view->open) {
+        if (balsa_app.remember_open_mboxes) {
             g_ptr_array_add(array, g_strdup(url));
-    } else {
-        view->open = FALSE;
-        view->in_sync = 0;
+        } else {
+            /* Forget that it was open */
+            view->open = FALSE;
+            view->in_sync = 0;
+        }
     }
 }
 


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