diff options
Diffstat (limited to 'mail/mail-autofilter.c')
-rw-r--r-- | mail/mail-autofilter.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mail/mail-autofilter.c b/mail/mail-autofilter.c index ece7e75ca5..02fbbfbbc7 100644 --- a/mail/mail-autofilter.c +++ b/mail/mail-autofilter.c @@ -420,7 +420,10 @@ mail_filter_delete_uri(CamelStore *store, const gchar *uri) deleted = rule_context_delete_uri ((RuleContext *) fc, euri, g_str_equal); if (deleted) { + EShell *shell; + GtkWindow *parent; GtkWidget *dialog; + GList *windows; GString *s; GList *l; @@ -431,7 +434,10 @@ mail_filter_delete_uri(CamelStore *store, const gchar *uri) l = l->next; } - dialog = e_error_new(NULL, "mail:filter-updated", s->str, euri, NULL); + shell = e_shell_get_default (); + windows = e_shell_get_watched_windows (shell); + parent = (windows != NULL) ? GTK_WINDOW (windows->data) : NULL; + dialog = e_error_new(parent, "mail:filter-updated", s->str, euri, NULL); g_string_free(s, TRUE); em_utils_show_info_silent (dialog); |