diff options
author | Milan Crha <mcrha@redhat.com> | 2009-10-13 22:24:10 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2009-10-13 22:24:10 +0800 |
commit | e06b88c4fda627599d7c1a33ddec0a35a4374e4f (patch) | |
tree | a862b4d3909923719ab03936ec60dfc00f185ba8 /filter/rule-context.c | |
parent | dc2953040b0fb9576411d2f145e7e6ff11dd989a (diff) | |
download | gsoc2013-evolution-e06b88c4fda627599d7c1a33ddec0a35a4374e4f.tar.gz gsoc2013-evolution-e06b88c4fda627599d7c1a33ddec0a35a4374e4f.tar.zst gsoc2013-evolution-e06b88c4fda627599d7c1a33ddec0a35a4374e4f.zip |
Bug #594471 - Shouldn't call e_error_new/run with NULL 'parent'
Diffstat (limited to 'filter/rule-context.c')
-rw-r--r-- | filter/rule-context.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/filter/rule-context.c b/filter/rule-context.c index b6e7df47de..45f495e37e 100644 --- a/filter/rule-context.c +++ b/filter/rule-context.c @@ -685,13 +685,13 @@ new_rule_response(GtkWidget *dialog, gint button, RuleContext *context) FilterRule *rule = g_object_get_data((GObject *) dialog, "rule"); gchar *user = g_object_get_data((GObject *) dialog, "path"); - if (!filter_rule_validate(rule)) { + if (!filter_rule_validate (rule, GTK_WINDOW (dialog))) { /* no need to popup a dialog because the validate code does that. */ return; } if (rule_context_find_rule (context, rule->name, rule->source)) { - e_error_run((GtkWindow *)dialog, "filter:bad-name-notunique", rule->name, NULL); + e_error_run ((GtkWindow *)dialog, "filter:bad-name-notunique", rule->name, NULL); return; } |