[Xfce4-commits] <postler:master> Check that there's a column before reading its title

Christian Dywan noreply at xfce.org
Sat Jul 2 17:08:07 CEST 2011


Updating branch refs/heads/master
         to e471a1171aee5d269fbf254b1d389d10d1dfae61 (commit)
       from 9b2bcea2bc2f04739dccbff6df8e0878b6882137 (commit)

commit e471a1171aee5d269fbf254b1d389d10d1dfae61
Author: Christian Dywan <christian at twotoasts.de>
Date:   Fri Jul 1 23:12:11 2011 +0200

    Check that there's a column before reading its title

 postler/postler-messages.vala |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/postler/postler-messages.vala b/postler/postler-messages.vala
index 459561a..8530a69 100644
--- a/postler/postler-messages.vala
+++ b/postler/postler-messages.vala
@@ -770,12 +770,13 @@ public class Postler.Messages : Gtk.TreeView {
         var path = paths.nth_data (0);
         if (path != null && model.get_iter (out iter, path)) {
             Gtk.TreeViewColumn column;
-            get_path_at_pos ((int)event.x, (int)event.y, null,
-                             out column, null, null);
-            unowned string title = column.get_title ();
-            /* Clickable icons should not display/ mark as read */
-            if (title != _("Status") && title != _("Flagged"))
-                display_message (iter);
+            if (get_path_at_pos ((int)event.x, (int)event.y, null,
+                                  out column, null, null)) {
+                unowned string title = column.get_title ();
+                /* Clickable icons should not display/ mark as read */
+                if (title != _("Status") && title != _("Flagged"))
+                    display_message (iter);
+            }
         }
         return base.button_release_event (event);
     }



More information about the Xfce4-commits mailing list