[Xfce4-commits] <postler:master> Update (selected) location after toggling flag

Christian Dywan noreply at xfce.org
Fri Nov 26 01:08:02 CET 2010


Updating branch refs/heads/master
         to 33ab418e220de6da738e4eb996d9103ef63ea36d (commit)
       from 174b28381095781564372ccae19a594a8f958cbd (commit)

commit 33ab418e220de6da738e4eb996d9103ef63ea36d
Author: Christian Dywan <christian at twotoasts.de>
Date:   Thu Nov 25 22:52:13 2010 +0100

    Update (selected) location after toggling flag

 postler/postler-messages.vala |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/postler/postler-messages.vala b/postler/postler-messages.vala
index c801315..146881a 100644
--- a/postler/postler-messages.vala
+++ b/postler/postler-messages.vala
@@ -755,8 +755,10 @@ public class Postler.Messages : Gtk.TreeView {
             store.set (child_iter,
                        Columns.FLAGGED, flagged != null ? true : false,
                        Columns.STATUS, status,
-                       Columns.LOCATION, location,
+                       Columns.LOCATION, new_location,
                        Columns.WEIGHT, font_weight);
+            if (location == selected_location)
+                selected_location = new_location;
         }
     }
 
@@ -838,7 +840,6 @@ public class Postler.Messages : Gtk.TreeView {
         sort.get (sort_iter, Columns.LOCATION, out location);
         mark_message_read (sort_iter, ref location);
         content.display (location);
-        selected_location = location;
     }
 
     public static bool ensure_folder (string folder) {



More information about the Xfce4-commits mailing list