[Xfce4-commits] [xfce/xfce4-panel] 01/01: tasklist: Avoid segfault with grouping disabled

noreply at xfce.org noreply at xfce.org
Sat Dec 1 22:27:06 CET 2018


This is an automated email from the git hooks/post-receive script.

o   c   h   o   s   i       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/xfce4-panel.

commit 4003fcfe2aac30160a13946581fff1769f0aa81c
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Sat Dec 1 22:26:27 2018 +0100

    tasklist: Avoid segfault with grouping disabled
---
 plugins/tasklist/tasklist-widget.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/plugins/tasklist/tasklist-widget.c b/plugins/tasklist/tasklist-widget.c
index 08e577c..df9c65f 100644
--- a/plugins/tasklist/tasklist-widget.c
+++ b/plugins/tasklist/tasklist-widget.c
@@ -2721,7 +2721,9 @@ xfce_tasklist_button_state_changed (WnckWindow        *window,
               g_hash_table_lookup_extended (child->tasklist->class_groups,
                                             child->class_group,
                                             NULL, (gpointer *) &group_child);
-              xfce_tasklist_group_button_icon_changed (child->class_group, group_child);
+
+              if (child->type == CHILD_TYPE_GROUP)
+                xfce_tasklist_group_button_icon_changed (child->class_group, group_child);
             }
         }
     }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list