diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2008-02-23 10:14:43 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2008-02-23 10:14:43 +0000 |
commit | ae42e395562bbd7ce17b011ae00236855a688dcb (patch) | |
tree | 311ebab113b6eaea55de8087e29a309bf3e7f64c | |
parent | 5399d02752429a2de13c485cdced44be02598a79 (diff) |
Fixed a check for custom column.
svn path=/trunk/; revision=24442
-rw-r--r-- | gtk/column_prefs.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gtk/column_prefs.c b/gtk/column_prefs.c index f5cc6e412e..0214aa354d 100644 --- a/gtk/column_prefs.c +++ b/gtk/column_prefs.c @@ -193,10 +193,11 @@ column_prefs_show() { clp = g_list_first(prefs.col_list); while (clp) { cfmt = (fmt_data *) clp->data; - if (cfmt->custom_field) { - fmt = g_strdup_printf("%s (%s)", col_format_desc(get_column_format_from_str(cfmt->fmt)), cfmt->custom_field); + cur_fmt = get_column_format_from_str(cfmt->fmt); + if (cur_fmt == COL_CUSTOM) { + fmt = g_strdup_printf("%s (%s)", col_format_desc(cur_fmt), cfmt->custom_field); } else { - fmt = g_strdup_printf("%s", col_format_desc(get_column_format_from_str(cfmt->fmt))); + fmt = g_strdup_printf("%s", col_format_desc(cur_fmt)); } #if GTK_MAJOR_VERSION < 2 col_ent[0] = cfmt->title; |