Do not repopulate folderview after account prefs save.
authorAndrej Kacian <ticho@claws-mail.org>
Tue, 19 Jul 2016 09:09:22 +0000 (11:09 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Tue, 19 Jul 2016 09:09:22 +0000 (11:09 +0200)
The only reason to repopulate is if user's chosen fonts
change, and that cannot happen in account prefs.

src/folderview.c

index af71005..8f66b16 100644 (file)
@@ -2692,12 +2692,13 @@ void folderview_reflect_prefs(void)
        last_boldfont = g_strdup(BOLD_FONT);
        last_derive = prefs_common.derive_from_normal_font;
 
-       if (update_font) {              
-               normal_style = normal_color_style = bold_style = 
-                       bold_color_style = bold_tgtfold_style = NULL;
+       if (!update_font)
+               return;
 
-               folderview_init(folderview);
-       }
+       normal_style = normal_color_style = bold_style =
+               bold_color_style = bold_tgtfold_style = NULL;
+
+       folderview_init(folderview);
        gtk_cmclist_freeze(GTK_CMCLIST(folderview->ctree));
        folderview_column_set_titles(folderview);
        folderview_set_all();