Ignore the expander "hot spots" in folderview for childless folders.
authorAndrej Kacian <ticho@claws-mail.org>
Fri, 27 Apr 2018 15:00:37 +0000 (17:00 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Fri, 27 Apr 2018 15:00:37 +0000 (17:00 +0200)
src/gtk/gtksctree.c

index 4519657..343b5db 100644 (file)
@@ -431,6 +431,8 @@ sctree_is_hot_spot (GtkSCTree     *sctree,
     return FALSE;
 
   tree_row = GTK_CMCTREE_ROW (node);
+  if (!tree_row->children)
+    return FALSE;
 
   hotspot_size = clist->row_height-2;
   if (hotspot_size > clist->column[ctree->tree_column].area.width - 2)