diff options
Diffstat (limited to 'mail/mail-send-recv.c')
-rw-r--r-- | mail/mail-send-recv.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c index 3e83144e7a..ca47d461cf 100644 --- a/mail/mail-send-recv.c +++ b/mail/mail-send-recv.c @@ -550,6 +550,9 @@ void mail_send_receive(void) extern CamelFolder *outbox_folder; const MailConfigAccount *account; + if (active_downloads == NULL) + active_downloads = g_hash_table_new(g_str_hash, g_str_equal); + if (gd != NULL) { g_assert(GTK_WIDGET_REALIZED(gd)); gdk_window_show(gd->window); @@ -614,6 +617,9 @@ void mail_receive_uri(const char *uri, int keep) FilterContext *fc; struct _send_info *info; + if (active_downloads == NULL) + active_downloads = g_hash_table_new(g_str_hash, g_str_equal); + info = g_hash_table_lookup(active_downloads); if (info != NULL) return; |