talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 51805d8ae9393a1639e504893a39a8d93a1b3a32
parent d45cc6e3ba85a5de365215d89cbde4498d917cef
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Wed, 25 Oct 2017 20:40:41 +0200

Fix missing invalid regexp indication in folder preferences.

The entry is supposed to turn red, but it couldn't
because of a logic error.

Diffstat:
Msrc/prefs_folder_item.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/prefs_folder_item.c b/src/prefs_folder_item.c @@ -1764,9 +1764,10 @@ static void folder_regexp_test_cb(GtkWidget *widget, gpointer data) if (!colors_initialised) { if (!gdk_color_parse("#ff7070", &red)) { g_warning("color parse failed: red"); - colors_initialised = gdk_colormap_alloc_color( - gdk_colormap_get_system(), &red, FALSE, TRUE); + return; } + colors_initialised = gdk_colormap_alloc_color( + gdk_colormap_get_system(), &red, FALSE, TRUE); } #endif