commit 6274ab07d23770f1c006022aa6b38508130aaa11
parent 28fe219b168b81bf1421003aed1268f05ea34d1d
Author: Andrej Kacian <ticho@claws-mail.org>
Date: Tue, 19 Jul 2016 11:48:17 +0200
Fix up previous commit.
Move the update_fonts check earlier, before the last_*font
pointers get modified.
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/folderview.c b/src/folderview.c
@@ -2684,6 +2684,9 @@ void folderview_reflect_prefs(void)
last_derive != prefs_common.derive_from_normal_font)
update_font = TRUE;
+ if (!update_font)
+ return;
+
g_free(last_smallfont);
last_smallfont = g_strdup(SMALL_FONT);
g_free(last_normalfont);
@@ -2692,9 +2695,6 @@ void folderview_reflect_prefs(void)
last_boldfont = g_strdup(BOLD_FONT);
last_derive = prefs_common.derive_from_normal_font;
- if (!update_font)
- return;
-
normal_style = normal_color_style = bold_style =
bold_color_style = bold_tgtfold_style = NULL;