aboutsummaryrefslogtreecommitdiffstats
path: root/filter/rule-editor.c
diff options
context:
space:
mode:
Diffstat (limited to 'filter/rule-editor.c')
-rw-r--r--filter/rule-editor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/filter/rule-editor.c b/filter/rule-editor.c
index e966ef89ad..68b77ab0ae 100644
--- a/filter/rule-editor.c
+++ b/filter/rule-editor.c
@@ -267,8 +267,8 @@ edit_editor_clicked (GtkWidget *dialog, int button, RuleEditor *re)
pos = rule_context_get_rank_rule (re->context, re->current, re->source);
if (pos != -1) {
- item = g_list_nth_data (((GtkList *)re->list)->children, pos);
- string = e_utf8_to_gtk_string (GTK_WIDGET (item), re->current->name);
+ item = g_list_nth_data (GTK_LIST (re->list)->children, pos);
+ string = e_utf8_to_gtk_string (GTK_WIDGET (item), re->edit->name);
gtk_label_set_text (GTK_LABEL (GTK_BIN (item)->child), string);
g_free (string);