[Commits] [SCM] claws branch, master, updated. 3.13.2-184-g6274ab0

ticho at claws-mail.org ticho at claws-mail.org
Tue Jul 19 11:49:30 CEST 2016


The branch, master has been updated
       via  6274ab07d23770f1c006022aa6b38508130aaa11 (commit)
      from  28fe219b168b81bf1421003aed1268f05ea34d1d (commit)

Summary of changes:
 src/folderview.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)


- Log -----------------------------------------------------------------
commit 6274ab07d23770f1c006022aa6b38508130aaa11
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Tue Jul 19 11:48:17 2016 +0200

    Fix up previous commit.
    
    Move the update_fonts check earlier, before the last_*font
    pointers get modified.

diff --git a/src/folderview.c b/src/folderview.c
index 8f66b16..909b2ad 100644
--- 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;
 

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list