aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-config.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/table/e-table-config.c')
-rw-r--r--widgets/table/e-table-config.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/widgets/table/e-table-config.c b/widgets/table/e-table-config.c
index d7c6fad7af..3a4ae1dec0 100644
--- a/widgets/table/e-table-config.c
+++ b/widgets/table/e-table-config.c
@@ -466,20 +466,22 @@ config_fields_info_update (ETableConfig *config)
{
ETableColumnSpecification **column;
GString *res = g_string_new ("");
- int i;
+ int i, j;
for (i = 0; i < config->state->col_count; i++){
- for (column = config->source_spec->columns; *column; column++){
+ for (j = 0, column = config->source_spec->columns; *column; column++, j++){
if ((*column)->disabled)
continue;
- if (config->state->columns [i] != (*column)->model_col)
+ if (config->state->columns [i] != j)
continue;
g_string_append (res, dgettext (config->domain, (*column)->title));
- if (column [1])
+ if (i + 1 < config->state->col_count)
g_string_append (res, ", ");
+
+ break;
}
}