fix bolding of target folder where target is trash
authorPaul <paul@claws-mail.org>
Mon, 16 Dec 2019 09:45:50 +0000 (09:45 +0000)
committerPaul <paul@claws-mail.org>
Mon, 16 Dec 2019 09:45:50 +0000 (09:45 +0000)
src/folderview.c

index 35f72da..263d3d8 100644 (file)
@@ -1735,9 +1735,11 @@ static void folderview_update_node(FolderView *folderview, GtkCMCTreeNode *node)
                        gtkut_convert_int_to_gdk_color(item->prefs->color, &gdk_color);
                        gtk_cmctree_node_set_foreground(ctree, node, &gdk_color);
                }
-       } else if (use_color) {
+       } else if (use_color)
                gtk_cmctree_node_set_foreground(ctree, node, &folderview->color_new);
-       } else if (item->prefs->color != 0) {
+       else if (item->op_count > 0)
+               gtk_cmctree_node_set_foreground(ctree, node, &folderview->color_op);
+       else if (item->prefs->color != 0) {
                gtkut_convert_int_to_gdk_color(item->prefs->color, &gdk_color);
                gtk_cmctree_node_set_foreground(ctree, node, &gdk_color);
        }