Always make new columns visible.

svn path=/trunk/; revision=33285
This commit is contained in:
Stig Bjørlykke 2010-06-22 11:09:07 +00:00
parent 667845d267
commit 737c0e843b
2 changed files with 3 additions and 0 deletions

View File

@ -3254,6 +3254,7 @@ copy_prefs(e_prefs *dest, e_prefs *src)
} else {
dest_cfmt->custom_field = NULL;
}
dest_cfmt->visible = src_cfmt->visible;
dest->col_list = g_list_append(dest->col_list, dest_cfmt);
}
dest->num_cols = src->num_cols;

View File

@ -342,6 +342,7 @@ column_prefs_add_custom(gint fmt, const gchar *title, const gchar *custom_field)
cfmt->custom_field = g_strdup(custom_field);
if (custom_field) {
cfmt->visible = TRUE;
clp = g_list_last(prefs.col_list);
last_cfmt = (fmt_data *) clp->data;
if (strcmp(last_cfmt->fmt, "%i") == 0) {
@ -351,6 +352,7 @@ column_prefs_add_custom(gint fmt, const gchar *title, const gchar *custom_field)
prefs.col_list = g_list_append(prefs.col_list, cfmt);
}
} else {
cfmt->visible = FALSE; /* Will be set to TRUE in visible_toggled() when added to list */
prefs.col_list = g_list_append(prefs.col_list, cfmt);
}
}